Sha256: 58f659bd79de9ca505159115be4549a57c48daacfe93b205a06112664d3be02e

Contents?: true

Size: 786 Bytes

Versions: 1

Compression:

Stored size: 786 Bytes

Contents

if ENV["TRAVIS"]
  require 'coveralls'
  Coveralls.wear!('rails')
end

require 'action_controller_tweaks'

require 'fixtures/application'
require 'fixtures/controllers'

require 'rspec/rails'
require 'rspec/its'

require 'timecop'
require 'logger'


# see https://github.com/rspec/rspec-rails/issues/1171
# prevent Test::Unit's AutoRunner from executing during RSpec's rake task
Test::Unit.run = true if defined?(Test::Unit) && Test::Unit.respond_to?(:run=)


# For comparison
class Hash
  def deep_include?(sub_hash)
    sub_hash.keys.all? do |key|
      self.has_key?(key) && if sub_hash[key].is_a?(Hash)
        self[key].is_a?(Hash) && self[key].deep_include?(sub_hash[key])
      else
        self[key] == sub_hash[key]
      end
    end
  end
end

RSpec.configure do |config|
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action_controller_tweaks-0.3.1 spec/spec_helper.rb