Sha256: 27947ab547691c9c122be0a7219e2c908fdc2d4a1e87ffd887a7dd02e055e023

Contents?: true

Size: 245 Bytes

Versions: 15

Compression:

Stored size: 245 Bytes

Contents

require 'pathname'
require 'stringio'

module CommonHelpers
  def fixture_file(filename)
    Pathname.new(__FILE__).dirname.expand_path.join('files', filename)
  end

  def create_io(nums)
    StringIO.new(nums.map { |n| n.chr }.join)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mp3file-1.3.0 spec/common_helpers.rb
mp3file-1.2.0 spec/common_helpers.rb
mp3file-1.1.5 spec/common_helpers.rb
mp3file-1.1.4 spec/common_helpers.rb
mp3file-1.1.3 spec/common_helpers.rb
mp3file-1.1.2 spec/common_helpers.rb
mp3file-1.1.1 spec/common_helpers.rb
mp3file-1.1.0 spec/common_helpers.rb
mp3file-1.0.3 spec/common_helpers.rb
mp3file-1.0.2 spec/common_helpers.rb
mp3file-1.0.1 spec/common_helpers.rb
mp3file-1.0.0 spec/common_helpers.rb
mp3file-0.0.4 spec/common_helpers.rb
mp3file-0.0.3 spec/common_helpers.rb
mp3file-0.0.2 spec/common_helpers.rb