Sha256: 63575c8dfb8b423664421e4014930682020f0fe817ba7c719216e3fb4ef6d8f6

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

require File.join(File.dirname(__FILE__), "../..", "test_helper.rb")

describe "Rails init.rb" do
  teardown { ENV.delete "RAILS_ENV"  }
  
  it "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 path
    load File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. rails init.rb]))
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relevance-tarantula-0.0.7 test/relevance/tarantula/rails_init_test.rb