Sha256: 9191db40e833f33ec2e9714556887f3f70d15f8e63b4b5201e3d7da9934cb27a

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

RSpec::Matchers.define :use_guided_failure do
  match do |env|
    env.use_guided_failure? == true
  end

  failure_message do |env|
    "Expected Environment '#{env.environment_name}' to use guided failure mode, but it didn't"
  end

  failure_message_when_negated do |env|
    "Expected Environment '#{env.environment_name}' not to use guided failure mode, but it did"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
octopus-serverspec-extensions-0.18.1 lib/octopus_serverspec_extensions/matcher/use_guided_failure.rb
octopus-serverspec-extensions-0.18.0 lib/octopus_serverspec_extensions/matcher/use_guided_failure.rb
octopus-serverspec-extensions-0.17.3 lib/octopus_serverspec_extensions/matcher/use_guided_failure.rb
octopus-serverspec-extensions-0.17.2 lib/octopus_serverspec_extensions/matcher/use_guided_failure.rb
octopus-serverspec-extensions-0.17.1 lib/octopus_serverspec_extensions/matcher/use_guided_failure.rb
octopus-serverspec-extensions-0.17.0 lib/octopus_serverspec_extensions/matcher/use_guided_failure.rb