Sha256: c4ab4f01d7329f1a9e247057257bb6d89e217897b028f58b4bc63e169f551c55

Contents?: true

Size: 750 Bytes

Versions: 4

Compression:

Stored size: 750 Bytes

Contents

$: << File.join(File.dirname(__FILE__), "/../../lib" )

ENV['RAILS_ENV'] = 'test'
ENV['RAILS_ROOT'] = 'app_root'

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/../app_root/config/environment"
require 'rspec/rails'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
require 'rspec_candy/all'

# Run the migrations
print "\033[30m" # dark gray text
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
print "\033[0m"

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures  = false

  config.mock_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
angular_xss-0.3.0 spec/rails-4.2/spec/spec_helper.rb
rails-angular-xss-0.1.0 spec/rails-4.2/spec/spec_helper.rb
angular_xss-0.2.3 spec/rails-4.2/spec/spec_helper.rb
angular_xss-0.2.2 spec/rails-4.2/spec/spec_helper.rb