Sha256: 002e9ffd135f2d7f8340d7aa523836313caa28e9fef14c4480e7d5d7f92cb5b9

Contents?: true

Size: 237 Bytes

Versions: 48

Compression:

Stored size: 237 Bytes

Contents

RSpec.configure do |config|

  def load_fixture(name, type='txt')
    type = type.to_s
    string = File.read(File.join(File.dirname(__FILE__), 'fixtures', "#{name}.#{type}"))
    type == 'txt' ? string : string.gsub("\n",'')
  end

end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
shortcode-1.2.1 spec/support/fixtures.rb
shortcode-1.2.0 spec/support/fixtures.rb
virgo-0.3.17 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.16 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.15 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.14 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.13 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.12 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.11 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.10 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.9 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.8 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.7 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.6 vendor/gems/shortcode/spec/support/fixtures.rb
shortcode-1.1.1 spec/support/fixtures.rb
virgo-0.3.4 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.3 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.2 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3.1 vendor/gems/shortcode/spec/support/fixtures.rb
virgo-0.3 vendor/gems/shortcode/spec/support/fixtures.rb