Sha256: 5eeab229d538682dc3d3d70a2c9c0b76689158ebc1c93350f569a8fffb9a7bcf
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require 'faker' require 'coveralls' Coveralls.wear! # Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' require 'factory_girl_rails' require 'mongoid-rspec' require 'capybara/rspec' require 'rspec/collection_matchers' 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 } Mongoid.configure do |config| config.connect_to('helena_adminstration_test') end Mongo::Logger.logger.level = Logger::WARN # Set log level to DEBUG to see everything RSpec.configure do |config| config.order = :random config.include ActionView::RecordIdentifier, type: :feature config.include Mongoid::Matchers, type: :model # We don't want write FactoryGirl all the time config.include FactoryGirl::Syntax::Methods config.infer_spec_type_from_file_location! config.after(:each) do Mongoid.purge! end end Shoulda::Matchers.configure do |config| config.integrate do |with| # Choose a test framework: with.test_framework :rspec with.library :active_model with.library :action_controller end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
helena-1.1.0 | spec/spec_helper.rb |
helena-1.0.3 | spec/spec_helper.rb |
helena-1.0.2 | spec/spec_helper.rb |