spec/lib/appsignal/capistrano2_spec.rb in appsignal-2.1.0.beta.1 vs spec/lib/appsignal/capistrano2_spec.rb in appsignal-2.1.0

- old
+ new

@@ -24,11 +24,11 @@ capistrano_config.find_and_execute_task("appsignal:deploy") end end it "should have a deploy task" do - capistrano_config.find_task("appsignal:deploy").should_not be_nil + expect(capistrano_config.find_task("appsignal:deploy")).to_not be_nil end describe "appsignal:deploy task" do before do ENV["USER"] = "batman" @@ -39,11 +39,11 @@ before do capistrano_config.dry_run = true end it "should be instantiated with the right params" do - Appsignal::Config.should_receive(:new).with( + expect(Appsignal::Config).to receive(:new).with( project_fixture_path, "production", {}, kind_of(Logger) ) @@ -53,11 +53,11 @@ before do capistrano_config.set(:appsignal_config, :name => "AppName") end it "should be instantiated with the right params" do - Appsignal::Config.should_receive(:new).with( + expect(Appsignal::Config).to receive(:new).with( project_fixture_path, "production", { :name => "AppName" }, kind_of(Logger) ) @@ -68,11 +68,11 @@ capistrano_config.unset(:rails_env) capistrano_config.set(:rack_env, "rack_production") end it "should be instantiated with the right params" do - Appsignal::Config.should_receive(:new).with( + expect(Appsignal::Config).to receive(:new).with( project_fixture_path, "rack_production", { :name => "AppName" }, kind_of(Logger) ) @@ -84,11 +84,11 @@ capistrano_config.unset(:rails_env) capistrano_config.set(:stage, "stage_production") end it "should be instantiated with the right params" do - Appsignal::Config.should_receive(:new).with( + expect(Appsignal::Config).to receive(:new).with( project_fixture_path, "stage_production", { :name => "AppName" }, kind_of(Logger) ) @@ -101,10 +101,10 @@ capistrano_config.set(:stage, "stage_production") capistrano_config.set(:appsignal_env, "appsignal_production") end it "should prefer the appsignal_env rather than stage, rails_env and rack_env" do - Appsignal::Config.should_receive(:new).with( + expect(Appsignal::Config).to receive(:new).with( project_fixture_path, "appsignal_production", { :name => "AppName" }, kind_of(Logger) )