Sha256: 8c51602588eff5a34d8be3b4090b8c1da8fa19fa93775478681bbe52b8d0a59c
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
if defined? Rails require 'spec_helper' require 'mongo_request_logger/railtie' class TestApp < Rails::Application config.root = File.join(__FILE__, '../testapp') end describe 'railtie' do it "should load the Railtie" do # For now, we mostly test that no errors are raised MongoRequestLogger::Railtie.should be MongoRequestLogger::Railtie.setup TestApp File.exist?(Rails.root.join('log/test.log')).should == true end after do FileUtils.rm_f(Rails.root.join('log/test.log')) end end end
Version data entries
4 entries across 4 versions & 1 rubygems