Sha256: a4ce56d917f23f8e62b4d82898f2d2920172e8af4ac547412306de8518985eaa

Contents?: true

Size: 549 Bytes

Versions: 6

Compression:

Stored size: 549 Bytes

Contents

# ------------------------------------------------------------
# RSpec

require 'spec_helper'

# ------------------------------------------------------------
# RSpec

RSpec.configure do |config|
  config.around(:example) do |example|
    next example.run unless defined?(Rails)

    rails_orig = Object.send(:remove_const, :Rails)
    begin
      example.run
    ensure
      Object.const_set(:Rails, rails_orig)
    end
  end
end

# ------------------------------------------------------------
# Code under test

require 'berkeley_library/logging'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
berkeley_library-logging-0.2.5 spec/standalone_helper.rb
berkeley_library-logging-0.2.4 spec/standalone_helper.rb
berkeley_library-logging-0.2.3 spec/standalone_helper.rb
berkeley_library-logging-0.2.2 spec/standalone_helper.rb
berkeley_library-logging-0.2.1 spec/standalone_helper.rb
berkeley_library-logging-0.2.0 spec/standalone_helper.rb