spec/all/anonymous_spec.rb in sugarcube-2.1.2 vs spec/all/anonymous_spec.rb in sugarcube-2.1.3

- old
+ new

@@ -44,9 +44,21 @@ } end end + describe "respond_to?" do + + it 'should respond with true if key exists' do + @h.respond_to?(:foo).should == true + end + + it 'should respond with false if key does not exist' do + @h.respond_to?(:not_foo).should == false + end + + end + describe "setter" do it 'should have an #foo= method, and return "Foo"' do @h.foo = 'Foo' @h.foo.should == 'Foo'