spec/lib/appsignal/capistrano3_spec.rb in appsignal-2.3.3.beta.1 vs spec/lib/appsignal/capistrano3_spec.rb in appsignal-2.3.3

- old
+ new

@@ -150,9 +150,22 @@ "Notifying AppSignal of deploy with: revision: abc123, user: batman", "AppSignal has been notified of this deploy!" end end + if Gem::Version.new(Capistrano::VERSION) >= Gem::Version.new("3.5.0") + context "when dry run" do + before do + expect(capistrano_config).to receive(:dry_run?).and_return(true) + run + end + + it "does not transmit the marker" do + expect(output).to include "Dry run: AppSignal deploy marker not actually sent." + end + end + end + context "with failed request" do before do stub_marker_request.to_return(:status => 500) run end