spec/spec_helper.rb in api_mailer-0.0.5 vs spec/spec_helper.rb in api_mailer-0.0.6

- old
+ new

@@ -5,10 +5,14 @@ # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration require 'active_support/hash_with_indifferent_access' require "api_mailer" + +module Rails +end + RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus @@ -17,10 +21,9 @@ # the seed, which is printed after each run. # --seed 1234 config.order = 'random' config.before(:each) do - Rails = double(:rails) unless defined?(Rails) Rails.stub(:root).and_return(Pathname.new(__FILE__).dirname) Rails.stub(:env).and_return(double(to_s: "test", test?: true)) end end