Add frozen_string_literal magic comment

re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
This commit is contained in:
James Mason 2018-05-07 16:47:29 -07:00
parent dd0a52cca9
commit 6d31dfeef4
568 changed files with 1134 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Source: https://robots.thoughtbot.com/validating-json-schemas-with-an-rspec-matcher
RSpec::Matchers.define :match_response_schema do |schema|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Mock external requests to youtube
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true, allow: /stripe.com/)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'external_request'
RSpec.configure do |config|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Flash
def flash
results = all(:css, 'div#flash p')

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ActiveRecord
class Base
mattr_accessor :shared_connection

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module LoginMacros
include Warden::Test::Helpers
Warden.test_mode!

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module OmniauthMacros
# The mock_auth configuration allows you to set per-provider (or default)
# authentication hashes to return during integration testing.

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Automatically save the page a test fails
Capybara.save_and_open_page_path = Rails.root.join('tmp', 'capybara')

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Sidebar
def sidebar
@conference = create(:conference)