Sha256: 7cf3cbfc216d2b265a037c7ddeaf9db415d17fedc61cd704cee3e71d1410da8a

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

RSpec::Matchers.define :have_windows_line_endings do
  match do |file|
    file.content.include?("\r\n")
  end

  failure_message do |file|
    "Expected file '#{file.name}' to have windows line endings, but it didn't"
  end

  failure_message_when_negated do |file|
    "Expected file '#{file.name}' to not have windows line endings, but it did"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octopus-serverspec-extensions-0.19.1 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.19.0 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.14.0 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb