Sha256: c3018ccc6567e6f08cbb2693efc087c5be706b054a50c3d9350d5aaf1945fa9d

Contents?: true

Size: 148 Bytes

Versions: 4

Compression:

Stored size: 148 Bytes

Contents

include ActionDispatch::TestProcess

def fixture_file(file_name)
  file_path = Rails.root.join('spec/assets', file_name)
  File.open(file_path)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katapult-0.5.0 lib/generators/katapult/basics/templates/spec/support/fixture_file.rb
katapult-0.4.1 lib/generators/katapult/basics/templates/spec/support/fixture_file.rb
katapult-0.4.0 lib/generators/katapult/basics/templates/spec/support/fixture_file.rb
katapult-0.3.0 lib/generators/katapult/basics/templates/spec/support/fixture_file.rb