2011-07-02 20:57:31 +00:00
|
|
|
RSpec.configure do |c|
|
|
|
|
c.mock_with :mocha
|
|
|
|
end
|
|
|
|
|
2011-07-13 14:22:13 +00:00
|
|
|
RSpec::Matchers.define :have_a_method_named do |name, arity|
|
|
|
|
match do |mod|
|
|
|
|
mod.method_defined?(name).should be_true
|
|
|
|
mod.instance_method(name).arity.should == arity
|
|
|
|
end
|
|
|
|
end
|