Created
October 23, 2012 18:23
-
-
Save DiyahM/3940524 to your computer and use it in GitHub Desktop.
Add to Rakefile for Turnip to work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined? RSpec # otherwise fails on non-live environments | |
task(:spec).clear | |
desc "Run all specs/features in spec directory" | |
RSpec::Core::RakeTask.new(:spec => 'db:test:prepare') do |t| | |
t.pattern = './spec/**/*{_spec.rb,.feature}' | |
end | |
namespace :spec do | |
desc "Run the code examples in spec/acceptance" | |
RSpec::Core::RakeTask.new(:acceptance => 'db:test:prepare') do |t| | |
t.pattern = './spec/acceptance/**/*{_spec.rb,.feature}' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment