Sha256: bbb5c753ed766091d8f611e1bf0db5e9997727a548e9d29aa4ef88c48578c392

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

require 'mocha'
require 'pathname'

require 'boot'

require 'geokit'
require 'geokit-rails3'

ActiveRecord::Base.send(:include, Geokit::ActsAsMappable::Glue)

class GeokitTestCase < ActiveSupport::TestCase
  begin
    include ActiveRecord::TestFixtures
  rescue NameError
    puts "You appear to be using a pre-2.3 version of Rails. No need to include ActiveRecord::TestFixtures."
  end
  
  self.fixture_path = (PLUGIN_ROOT + 'test/fixtures').to_s
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
  
  fixtures :all 
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jackruss-geokit-rails3-0.1.5.1 test/test_helper.rb
geokit-rails3-0.1.5 test/test_helper.rb
geokit-rails3-0.1.3 test/test_helper.rb
geokit-rails3-0.1.2 test/test_helper.rb
geokit-rails3-0.1.1 test/test_helper.rb
geokit-rails3-0.1.0 test/test_helper.rb
geokit-rails3-0.0.5 test/test_helper.rb
geokit-rails3-0.0.4 test/test_helper.rb
geokit-rails3-0.0.3 test/test_helper.rb