spec/unit/console_spec.rb in goliath-1.0.5 vs spec/unit/console_spec.rb in goliath-1.0.6
- old
+ new
@@ -7,12 +7,12 @@
@server = Goliath::Server.new
end
describe 'run!' do
it "starts a irb session" do
- Object.should_receive(:send).with(:define_method, :goliath_server)
- IRB.should_receive(:start)
- @server.should_receive(:load_config)
+ expect(Object).to receive(:send).with(:define_method, :goliath_server)
+ expect(IRB).to receive(:start)
+ expect(@server).to receive(:load_config)
Goliath::Console.run!(@server)
end
end
end