Skip to content

Commit

Permalink
Make the generated_specs taks part of the default rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed May 11, 2012
1 parent 9a18ee4 commit 5441ed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
require File.expand_path('../spec/rspec_generator_task', __FILE__) # for spec:generate task

task :default => [:spec]
task :default => [:spec, 'spec:rspec_generated_specs']

desc "Run the specs"
RSpec::Core::RakeTask.new(:spec => []) do |t|
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec_generator_task.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace :spec do
desc "Run rspec's generated specs against RC'd controllers"
task :generate => 'tmp/test_app' do
task :rspec_generated_specs => 'tmp/test_app' do
require 'active_support/all'

cd 'tmp/test_app' do
Expand Down

0 comments on commit 5441ed1

Please sign in to comment.