Browse Source

Load dummy environment in specs and dummy tasks in Rakefile

master
Ross Kaffenberger 11 years ago
parent
commit
4c4f978d2e
  1. 8
      Rakefile
  2. 4
      spec/spec_helper.rb

8
Rakefile

@ -1 +1,9 @@
require "bundler/gem_tasks"
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'
desc "Run all specs in spec directory (excluding plugin specs)"
RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
task :default => :spec

4
spec/spec_helper.rb

@ -1,5 +1,5 @@
require "rubygems"
require "bundler/setup"
ENV["RAILS_ENV"] ||= "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'two_factor_authentication'

Loading…
Cancel
Save