Sha256: 297b85749809601753bfeb861a8fb9eb315dc8560744f7f07d538c09106ffe96

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

module DataHelper
  
  def response_data(format, filename)
    filename = File.join(File.dirname(__FILE__), format.to_s, filename)
    raise "File not found: #{filename}. Check atoms spec folder for available samples." if !File.exist?(filename)
    IO.read(filename)
  end
  
  alias_method :load_data, :response_data

end

include DataHelper

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 tests/spec/support/data_helper.rb
restfulie-1.1.1 tests/spec/support/data_helper.rb
restfulie-1.1.0 tests/spec/support/data_helper.rb
restfulie-nosqlite-1.0.3 tests/spec/support/data_helper.rb
restfulie-1.0.3 tests/spec/support/data_helper.rb