iterm_window/spec/spec_helper.rb

11 lines
234 B
Ruby
Raw Normal View History

2011-07-02 20:57:31 +00:00
RSpec.configure do |c|
c.mock_with :mocha
end
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