Sha256: b473f6ffe2e6f0280564e5b47ddc644acdda33d06f54de1f3fb52a8f60ebb823

Contents?: true

Size: 776 Bytes

Versions: 6

Compression:

Stored size: 776 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'

FactoryGirl.definition_file_paths = ["#{File.dirname(__FILE__)}/factories"]
FactoryGirl.find_definitions

Rails.backtrace_cleaner.remove_silencers!
# Load support files

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.include Devise::TestHelpers, :type => :controller
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"
  
  # see https://github.com/rails/journey/issues/39
  config.before(:each, :type=>"controller") { @routes = HydraEditor::Engine.routes }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-editor-0.0.6 spec/spec_helper.rb
hydra-editor-0.0.5 spec/spec_helper.rb
hydra-editor-0.0.4 spec/spec_helper.rb
hydra-editor-0.0.3 spec/spec_helper.rb
hydra-editor-0.0.2 spec/spec_helper.rb
hydra-editor-0.0.1 spec/spec_helper.rb