search for: should_be_open

Displaying 1 result from an estimated 1 matches for "should_be_open".

2006 Dec 19
1
something.should_be_open blows up?
context "A new Foo" specify "should be open" do Foo.new.should_be_open end end ArgumentError in ''A new Foo should be open'' wrong number of arguments (0 for 1) ./foo_spec.rb:9: class Foo def open?; true; end end What''s the deal with that? I looked in the RDoc and nothing seems to define open?. I can get around it for now by doing the...