spec/punchblock/component/component_node_spec.rb in punchblock-0.9.2 vs spec/punchblock/component/component_node_spec.rb in punchblock-0.10.0

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + require 'spec_helper' module Punchblock module Component describe ComponentNode do @@ -16,11 +18,11 @@ let(:add_event) { subject.add_event event } describe "with a complete event" do it "should set the complete event resource" do add_event - subject.complete_event(0.5).should == event + subject.complete_event(0.5).should be == event end it "should call #complete!" do subject.expects(:complete!).once add_event @@ -73,11 +75,11 @@ end end it "should set the component ID from the ref" do subject.response = ref - subject.component_id.should == component_id + subject.component_id.should be == component_id subject.client.find_component_by_id(component_id).should be subject end end describe "#complete_event=" do @@ -92,10 +94,10 @@ end it "should be a no-op if the response has already been set" do subject.complete_event = :foo lambda { subject.complete_event = :bar }.should_not raise_error - subject.complete_event(0.5).should == :foo + subject.complete_event(0.5).should be == :foo end end end # ComponentNode end # Component end # Punchblock