spec/chanko/controller_spec.rb in chanko-2.0.6 vs spec/chanko/controller_spec.rb in chanko-2.0.7

- old
+ new

@@ -20,24 +20,24 @@ let(:controller) do controller_class.new end it "defines an action to invoke unit function" do - controller.test.should == "test" + expect(controller.test).to eq("test") end it "defines 2 actions at one line" do - controller.foo.should == "foo" - controller.bar.should == "bar" + expect(controller.foo).to eq("foo") + expect(controller.bar).to eq("bar") end it "is aliased with `ext_action`" do - controller.alias.should == "alias" + expect(controller.alias).to eq("alias") end context "when invoke is fallen back" do it "halts with 400 status code" do - controller.error.should == "Bad Request 400" + expect(controller.error).to eq("Bad Request 400") end end end end end