Sha256: fc0e3527aad06545a800d2f05ea3bd609ed162b230720e1bc5c76461c2412d6a

Contents?: true

Size: 370 Bytes

Versions: 16

Compression:

Stored size: 370 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

16 entries across 16 versions & 1 rubygems

Version Path
octopus-serverspec-extensions-0.18.1 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.18.0 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.17.3 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.17.2 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.17.1 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.17.0 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.15.5 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.15.4 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.15.3 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.15.2 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.15.1 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.15.0 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.13.6 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.13.5 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.13.4 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb
octopus-serverspec-extensions-0.13.3 lib/octopus_serverspec_extensions/matcher/have_windows_line_endings.rb