Sha256: a25db003a484051a6ac55d1d65a31c8c21a10da0115a95eab9d2b7206122acb5

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

require 'sinatra/activerecord'
require 'rspec-activerecord'

RSpec.configure do |c|
  c.fixture_path = File.expand_path("../../integration/fixtures", __FILE__)
  c.use_transactional_fixtures = true
end

def fixtures(symbol)
  ActiveRecord::FixtureSet.create_fixtures(RSpec.configuration.fixture_path, symbol.to_s)
end

def fixture(type, name)
  fixture_set = ActiveRecord::FixtureSet.all_loaded_fixtures[type.to_s]
  fixture_set.fixtures.find { |k, v| k == name.to_s }.second
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-herald-0.8.1 spec/support/fixtures.rb
puppet-herald-0.8.0 spec/support/fixtures.rb