Sha256: 42afbaa2dadfeb78e9a679778815669d76ee4b68c13b293a2ddbab6345935ac2

Contents?: true

Size: 365 Bytes

Versions: 16

Compression:

Stored size: 365 Bytes

Contents

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

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

  failure_message_when_negated do |file|
    "Expected file '#{file.name}' to not have linux 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_linux_line_endings.rb
octopus-serverspec-extensions-0.18.0 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.17.3 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.17.2 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.17.1 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.17.0 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.15.5 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.15.4 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.15.3 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.15.2 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.15.1 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.15.0 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.13.6 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.13.5 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.13.4 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb
octopus-serverspec-extensions-0.13.3 lib/octopus_serverspec_extensions/matcher/have_linux_line_endings.rb