Skip to content

Commit

Permalink
Force rake spec to run in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
ariejan committed Nov 11, 2012
1 parent e26513f commit 3f0fdf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ require 'rspec/core/rake_task'
require 'sinatra/activerecord/rake'

desc "Run all the specs!"
RSpec::Core::RakeTask.new
RSpec::Core::RakeTask.new :spec do |config|
ENV['RACK_ENV'] = "test"
end

task default: :spec

0 comments on commit 3f0fdf4

Please sign in to comment.