spec/support/helper_methods.rb
# If you changed Settings anywhere in your spec, include this as
# in after :all to reset to the normal settings.
If you changed Settings anywhere in your spec, include this as
in after :all to reset to the normal settings.
If you changed Settings anywhere in your spec include this as in after : all to reset to the normal settings .
def reset_settings
  Settings.reload_from_files(
    Rails.root.join("config", "settings.yml").to_s,
    Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
    Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s,
    Rails.root.join("config", "settings.local.yml").to_s,
    Rails.root.join("config", "settings", "#{Rails.env}.local.yml").to_s,
    Rails.root.join("config", "environments", "#{Rails.env}.local.yml").to_s,
  )
end
def reset_settings Settings . reload_from_files ( Rails . root . join ( "config" , "settings.yml" ) . to_s , Rails . root . join ( "config" , "settings" , "#{Rails.env}.yml" ) . to_s , Rails . root . join ( "config" , "environments" , "#{Rails.env}.yml" ) . to_s , Rails . root . join ( "config" , "settings.local.yml" ) . to_s , Rails . root . join ( "config" , "settings" , "#{Rails.env}.local.yml" ) . to_s , Rails . root . join ( "config" , "environments" , "#{Rails.env}.local.yml" ) . to_s , ) end
If you changed Settings anywhere in your spec, include this as
in after :all to reset to the normal settings.
If you changed Settings anywhere in your spec include this as in after : all to reset to the normal settings .