spec/lib/rsyc_spec.rb in rsyc-0.1.0 vs spec/lib/rsyc_spec.rb in rsyc-0.1.2

- old
+ new

@@ -28,10 +28,12 @@ it 'should have accessors' do subject.simple.should == "value" subject[:simple].should == "value" subject["simple"].should == "value" + subject.respond_to?(:simple).should be_true + subject.respond_to?("simple").should be_true -> { subject.missing }.should raise_error(NoMethodError) subject[:missing].should be_nil subject["missing"].should be_nil @@ -41,9 +43,11 @@ subject.nested["url"].should == "http://test.host.com/path?a=1" -> { subject.nested.missing }.should raise_error(NoMethodError) subject.nested[:missing].should be_nil subject.nested["missing"].should be_nil + subject.respond_to?(:missing).should be_false + subject.respond_to?("missing").should be_false end end describe Rsyc::Options do