Sha256: f28e7c901298a9429ffc2c8540eeb15c418e4f5271666cdb3a9a639e49b81e37

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

module FileHelpers
  def sample_reference_image
    fixture_image('sample_reference.png').read
  end

  def sample_generated_image
    fixture_image('sample_generated.png').read
  end

  def sample_difference_image
    fixture_image('sample_generated.png_difference.gif').read
  end

  def fixture_image file_name
    File.new File.join(fixture_image_path, file_name)
  end

  def fixture_image_path
    File.expand_path "../../fixtures", File.dirname(__FILE__)
  end
end

World FileHelpers

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compaa-0.0.4 features/support/file_helpers.rb
compaa-0.0.3 features/support/file_helpers.rb
compaa-0.0.2 features/support/file_helpers.rb
compaa-0.0.1.3 features/support/file_helpers.rb
compaa-0.0.1.2 features/support/file_helpers.rb
compaa-0.0.1.1 features/support/file_helpers.rb