Sha256: cd62e17c41320bbca40eecbc0b38900497cd7c0887a835539cddd9ad59df7bdd

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 Bytes

Contents

require 'rubygems'
require 'webmock'
require 'logworm'

require File.dirname(__FILE__) + '/spec_helper'

$: << File.dirname(__FILE__) + '/../lib'

describe Logworm, " init" do
  it "should initialize the logger with a default db" do
    require 'logworm_client/logger.rb'                  # ==> Get Logworm::Logger defined
    Logworm::Logger.should_receive(:use_default_db)

    require 'action_controller'                         # ==> Get ActionController defined 
    load 'logworm_client/rails.rb'                      # ==> does class_eval of ActionController (use load to guarantee require)
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
logworm_client_amqp-0.8.8 spec/rails_spec.rb
logworm_client_amqp-0.8.7 spec/rails_spec.rb
logworm_client_amqp-0.8.6 spec/rails_spec.rb
logworm_client_amqp-0.8.5 spec/rails_spec.rb
logworm_client_amqp-0.8.3 spec/rails_spec.rb
logworm_client_amqp-0.8.2 spec/rails_spec.rb
logworm_client_amqp-0.8.0 spec/rails_spec.rb
logworm_client-0.7.2 spec/rails_spec.rb
logworm_client-0.7.1 spec/rails_spec.rb