Sha256: 5cacc38c029e4c93d552a8aa19804e13b05a6a5172230170abaa93c92bea5a8b
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 Bytes
Contents
module FixtureBuilder class FixturesPath def self.absolute_rails_fixtures_path File.expand_path(ActiveRecord::Tasks::DatabaseTasks.fixtures_path) rescue if ENV["FIXTURES_PATH"] ENV["FIXTURES_PATH"] elsif File.exist?(File.expand_path("spec/fixtures",::Rails.root)) File.expand_path("spec/fixtures",::Rails.root) else File.expand_path("test/fixtures",::Rails.root) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fixture_builder-0.5.3.rc2 | lib/fixture_builder/fixtures_path.rb |
fixture_builder-0.5.3.rc1 | lib/fixture_builder/fixtures_path.rb |
fixture_builder-0.5.2 | lib/fixture_builder/fixtures_path.rb |