Created
August 24, 2011 14:01
-
-
Save stratequip/1168142 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| spec_prereq = Rails.configuration.generators.options[:rails][:orm] == :active_record ? "db:test:prepare" : :noop | |
| patterns = [:requests, :models, :controllers, :views, :helpers, :mailers, :lib, :routing] | |
| namespace :spec do | |
| desc "Run the code examples not in spec/acceptance" | |
| RSpec::Core::RakeTask.new("no_acceptance" => spec_prereq) do |t| | |
| t.pattern = patterns.map { |sub| "./spec/#{sub}/**/*_spec.rb" } | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment