Sha256: f578022bc73aaf83375835466dc11357a01b7de2f97178c4e427334d13cc8c59

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

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

  failure_message do |env|
    "Expected Environment '#{env.environment_name}' to allow dynamic infrastructure, but it didn't"
  end

  failure_message_when_negated do |env|
    "Expected Environment '#{env.environment_name}' not to allow dynamic infrastructure, 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/allow_dynamic_infrastructure.rb
octopus-serverspec-extensions-0.18.0 lib/octopus_serverspec_extensions/matcher/allow_dynamic_infrastructure.rb
octopus-serverspec-extensions-0.17.3 lib/octopus_serverspec_extensions/matcher/allow_dynamic_infrastructure.rb
octopus-serverspec-extensions-0.17.2 lib/octopus_serverspec_extensions/matcher/allow_dynamic_infrastructure.rb
octopus-serverspec-extensions-0.17.1 lib/octopus_serverspec_extensions/matcher/allow_dynamic_infrastructure.rb
octopus-serverspec-extensions-0.17.0 lib/octopus_serverspec_extensions/matcher/allow_dynamic_infrastructure.rb