Sha256: 08c4aab7f92e03cfc3381af361d6a085df6832ef5bb96857931dd8ed812d1f77

Contents?: true

Size: 308 Bytes

Versions: 25

Compression:

Stored size: 308 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|
    raise StandardError.new if test_lines.empty?

    line.strip.should == test_lines.shift.strip
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
penchant-0.2.29 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.28 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.27 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.26 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.24 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.23 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.22 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.21 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.20 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.19 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.18 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.17 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.16 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.15 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.14 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.13 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.12 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.11 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.10 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb
penchant-0.2.9 features/step_definitions/then/the_file_gemfile_should_have_the_following_stripped_content.rb