Skip to content

Commit

Permalink
freeze strings in Rakefile, Gemfile, and spec/ (except dummy app)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmstfv committed Oct 13, 2019
1 parent 04db811 commit 0e2da95
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec
2 changes: 2 additions & 0 deletions Rakefile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

Expand Down
2 changes: 2 additions & 0 deletions spec/controllers_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe InvisibleCaptcha::ControllerExt, type: :controller do
render_views

Expand Down
2 changes: 2 additions & 0 deletions spec/invisible_captcha_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe InvisibleCaptcha do
it 'initialize with defaults' do
InvisibleCaptcha.init!
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

ENV['RAILS_ENV'] = 'test'

require File.expand_path("../dummy/config/environment.rb", __FILE__)
Expand Down
2 changes: 2 additions & 0 deletions spec/view_helpers_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe InvisibleCaptcha::ViewHelpers, type: :helper do
before(:each) do
allow(Time.zone).to receive(:now).and_return(Time.zone.parse('Feb 19 1986'))
Expand Down

0 comments on commit 0e2da95

Please sign in to comment.