Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

And then, the moment after committing, I realised that I hadn't inclu…

…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...
commit e06b5781893c3cf99c76451e0843dcee8b8f963f 1 parent a2085fc
@parndt parndt authored
Showing with 7 additions and 5 deletions.
  1. +6 −5 lib/refinery/tasks/refinery.rake
  2. +1 −0  test/test_helper.rb
View
11 lib/refinery/tasks/refinery.rake
@@ -21,7 +21,7 @@ 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."
@@ -29,7 +29,7 @@ namespace :test do
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."
@@ -37,15 +37,16 @@ namespace :test do
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
View
1  test/test_helper.rb
@@ -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...
Please sign in to comment.
Something went wrong with that request. Please try again.