test/relevance/tarantula/rails_init_test.rb in relevance-tarantula-0.0.7 vs test/relevance/tarantula/rails_init_test.rb in relevance-tarantula-0.0.7.1
- old
+ new
@@ -1,12 +1,13 @@
require File.join(File.dirname(__FILE__), "../..", "test_helper.rb")
describe "Rails init.rb" do
- teardown { ENV.delete "RAILS_ENV" }
+ teardown { ENV.delete "RAILS_ENV" }
- it "requires main tarantula file if in test environment" do
+ xit "requires main tarantula file if in test environment" do
ENV["RAILS_ENV"] = "test"
path = File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. lib relevance tarantula]))
+ Object.any_instance.expects(:require).with('rake')
Object.any_instance.expects(:require).with path
load File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. rails init.rb]))
end
end