Skip to content
Browse files

Re-organizing core specs

  • Loading branch information...
1 parent a4fc21f commit 7bc1ef37c5aba4bdd55d6432401ece29a6d1d32f @calebhc committed May 24, 2012
View
5 Rakefile
@@ -5,10 +5,7 @@ task :default => :all_specs
desc 'Run all the specs!'
task :all_specs do
- sh 'bundle install'
- sh 'bundle exec rspec spec/helpers'
-
- Dir['spec/rails*/Rakefile'].each do |rakefile|
+ Dir['spec/rails*/Rakefile', 'spec/core/Rakefile'].each do |rakefile|
directory_name = File.dirname rakefile
sh <<-CMD
cd #{directory_name}
View
0 Gemfile → spec/core/Gemfile
File renamed without changes.
View
10 spec/core/Rakefile
@@ -0,0 +1,10 @@
+require 'rake'
+require 'rspec/core/rake_task'
+
+desc 'Default: Run all the specs for core'
+task :default => :spec
+
+desc 'Run all the specs for core'
+RSpec::Core::RakeTask.new(:spec) do |task|
+ task.pattern = '*_spec.rb'
+end
View
0 spec/helpers/helpers_spec.rb → spec/core/helpers_spec.rb
File renamed without changes.

0 comments on commit 7bc1ef3

Please sign in to comment.
Something went wrong with that request. Please try again.