spec/go_spec.rb in agent-0.10.0 vs spec/go_spec.rb in agent-0.11.0

- old
+ new

@@ -1,17 +1,17 @@ require "spec_helper" describe "Agent.go!" do it "should launch a 'goroutine' that is actually a thread" do - Agent.go!{}.should be_a(Thread) + expect(Agent.go!{}).to be_a(Thread) end it "should pass into the thread any arguments passed to it" do b = nil Agent.go!(1){|a| b = a }.join - b.should == 1 + expect(b).to eq(1) end it "should raise an error if no block is passed" do - lambda{ Agent.go! }.should raise_error(Agent::Errors::BlockMissing) + expect{ Agent.go! }.to raise_error(Agent::Errors::BlockMissing) end end