Sha256: 26eaa039c81cf8cb85449e5261e5c4ad0b3aa214f0f358dbea9409296da4843f
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" #ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = false #ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! # Configure capybara for integration testing #require "capybara/rails" #Capybara.default_driver = :rack_test #Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } plugin_fixture_path = File.expand_path(File.dirname(__FILE__) + "/fixtures/") $LOAD_PATH.unshift(plugin_fixture_path) RSpec.configure do |config| # Remove this line if you don't want Rspec's should and should_not # methods or matchers require 'rspec/expectations' config.include Rspec::Matchers # == Mock Framework config.mock_with :rspec config.fixture_path=plugin_fixture_path end load(File.dirname(__FILE__) + "/dummy/db/schema.rb")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts_as_eav_model-0.0.2 | spec/spec_helper.rb |
acts_as_eav_model-0.0.1 | spec/spec_helper.rb |
acts_as_eav_model-0.0.0 | spec/spec_helper.rb |