Skip to content

Commit

Permalink
And then, the moment after committing, I realised that I hadn't inclu…
Browse files Browse the repository at this point in the history
…ded any of the right paths that would actually make this work (I had been saving the wrong files -- the ones in my test directory). So here they are.
  • Loading branch information
parndt committed Mar 1, 2010
1 parent a2085fc commit e06b578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/refinery/tasks/refinery.rake
Expand Up @@ -21,31 +21,32 @@ namespace :test do
t.libs << Refinery.root.join("test").to_s
t.pattern = Refinery.root.join("test", "unit", "**", "*_test.rb").to_s
t.verbose = true
ENV["REFINERY_ROOT"] = Refinery.root.to_s
ENV["RAILS_ROOT"] = Rails.root.to_s
end
Rake::Task['test:refinery:units'].comment = "Run the unit tests in Refinery."

Rake::TestTask.new(:functionals => "db:test:prepare") do |t|
t.libs << Refinery.root.join("test").to_s
t.pattern = Refinery.root.join("test", "functional", "**", "*_test.rb").to_s
t.verbose = true
ENV["REFINERY_ROOT"] = Refinery.root.to_s
ENV["RAILS_ROOT"] = Rails.root.to_s
end
Rake::Task['test:refinery:functionals'].comment = "Run the functional tests in Refinery."

Rake::TestTask.new(:integration => "db:test:prepare") do |t|
t.libs << Refinery.root.join("test").to_s
t.pattern = Refinery.root.join("test", "integration", "**", "*_test.rb").to_s
t.verbose = true
ENV["REFINERY_ROOT"] = Refinery.root.to_s
ENV["RAILS_ROOT"] = Rails.root.to_s
end
Rake::Task['test:refinery:integration'].comment = "Run the integration tests in Refinery."

Rake::TestTask.new(:benchmark => 'db:test:prepare') do |t|
t.libs << 'test'
t.pattern = 'test/performance/**/*_test.rb'
t.libs << Refinery.root.join("test").to_s
t.pattern = Refinery.root.join("test", "performance", "**", "*_test.rb")
t.verbose = true
t.options = '-- --benchmark'
ENV["RAILS_ROOT"] = Rails.root.to_s
end
Rake::Task['test:refinery:benchmark'].comment = 'Benchmark the performance tests in Refinery'
end
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Expand Up @@ -33,6 +33,7 @@ class ActiveSupport::TestCase
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
self.fixture_path = Refinery.root.join("test", "fixtures").to_s
fixtures :all

# Add more helper methods to be used by all tests here...
Expand Down

0 comments on commit e06b578

Please sign in to comment.