Sha256: 1bdbed82c4f61d61c2f8d6d759878bae75e3dfc1efdcd8db60813e6a92cd3411
Contents?: true
Size: 544 Bytes
Versions: 4
Compression:
Stored size: 544 Bytes
Contents
require File.join(File.dirname(__FILE__), "../..", "test_helper.rb") describe "Rails init.rb" do teardown { ENV.delete "RAILS_ENV" } 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
Version data entries
4 entries across 4 versions & 2 rubygems