Sha256: f151664a6367c25c97a2dc99114485dbd172969565c3db30a7aa1c668107fbee
Contents?: true
Size: 961 Bytes
Versions: 4
Compression:
Stored size: 961 Bytes
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" spec_root = File.expand_path('..', __FILE__) require File.expand_path("dummy/config/environment.rb", spec_root) require 'pry' require 'rspec/rails' require 'factories' ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f } RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods config.include Devise::TestHelpers, :type => :controller config.mock_with :rspec config.use_transactional_fixtures = true # enable rendering of views for controller tests # see http://stackoverflow.com/questions/4401539/rspec-2-how-to-render-views-by-default-for-all-controller-specs config.render_views end ActiveRecord::Migrator.migrate(File.expand_path("dummy/db/migrate/", spec_root))
Version data entries
4 entries across 4 versions & 1 rubygems