iterm_window/spec/spec_helper.rb
2011-07-13 10:22:13 -04:00

11 lines
234 B
Ruby

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