Sha256: 79f8e8e68018673fbbe0c7c9e2d8c220b58899f35b4ab847ad3fa9708e3e24fe

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 Bytes

Contents

Then /^the file "(.*?)" should have the following stripped content:$/ do |file, string|
  test_lines = string.lines.to_a

  File.read(file).lines.collect(&:strip).reject(&:empty?).to_a.each do |line|
    line.strip.should == test_lines.shift.strip
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
penchant-0.2.3 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.2 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.1 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb