example/duck/test.rb in spectus-1.0.0 vs example/duck/test.rb in spectus-1.0.1

- old
+ new

@@ -1,11 +1,10 @@ #!/usr/bin/env ruby -w require_relative 'app' -# require 'spectus' -require_relative '../../lib/spectus' +require 'spectus' extend Spectus::DSL expectation_1 = expect { @app.swims }.to capture_stderr: " ...\n" expectation_2 = expect { @app.quacks }.to capture_stdout: "Quaaaaaack!\n" @@ -15,7 +14,7 @@ case (expectation_1 == true && expectation_2 == true && expectation_3 == true && expectation_4 == true) when true then puts "I call that #{@app} a duck." - else warn 'WAT?' + else abort 'WAT?' end