Sha256: 9b63ed972393ee6adbb7a2cc600ce5f7aa87e2973766bff03701af01564a14bb
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
ENV['RAILS_ENV'] = 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'maily' RSpec.configure do |config| config.mock_with :rspec config.order = 'random' end # Rails 4.2 call `initialize` inside `recycle!`. However Ruby 2.6 doesn't allow calling `initialize` twice. # More info: https://github.com/rails/rails/issues/34790 if RUBY_VERSION >= "2.6.0" && Rails.version < "5" module ActionController class TestResponse < ActionDispatch::TestResponse def recycle! @mon_mutex_owner_object_id = nil @mon_mutex = nil initialize end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maily-0.9.0 | spec/spec_helper.rb |