Skip to content

Commit

Permalink
Merge 37ed860 into 6f30aed
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Mar 6, 2021
2 parents 6f30aed + 37ed860 commit 8d53f13
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions spec/rails/add_application_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let(:test_rewritten_content) { <<~EOS }
class ApplicationJob < ActiveJob::Base
end
EOS
EOS

include_examples 'convertable'
end
Expand All @@ -21,11 +21,11 @@ class ApplicationJob < ActiveJob::Base
let(:test_content) { <<~EOS }
class PostJob < ActiveJob::Base
end
EOS
EOS
let(:test_rewritten_content) { <<~EOS }
class PostJob < ApplicationJob
end
EOS
EOS

include_examples 'convertable'
end
Expand Down
6 changes: 3 additions & 3 deletions spec/rails/add_application_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
EOS
EOS

include_examples 'convertable'
end
Expand All @@ -22,11 +22,11 @@ class ApplicationRecord < ActiveRecord::Base
let(:test_content) { <<~EOS }
class Post < ActiveRecord::Base
end
EOS
EOS
let(:test_rewritten_content) { <<~EOS }
class Post < ApplicationRecord
end
EOS
EOS

include_examples 'convertable'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rails/upgrade_3_0_to_3_1_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
ActiveSupport.on_load(:active_record) do
self.include_root_in_json = false
end
EOS
EOS
let(:session_store_content) {
"
Synvert::Application.config.session_store :cookie_store, key: 'somethingold'
Expand Down
4 changes: 2 additions & 2 deletions spec/ruby/new_2_2_hash_syntax_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
{ foo_key: 'foo_value', bar_key: 42, "baz-key" => true }
{ :"foo-#{key}" => 'foo_value', :"bar-key" => 42, :"a\tb" => false, :"c'd" => nil }
{ "foo-#{key}": 'foo_value', 'bar-key': 42, "a\tb": false, "c'd": nil }
EOS
EOS
let(:test_rewritten_content) { <<~'EOS' }
{ foo: 'bar', 'foo' => 'bar' }
{ key1: 'value1', key2: 'value2' }
{ foo_key: 'foo_value', bar_key: 42, "baz-key" => true }
{ "foo-#{key}": 'foo_value', 'bar-key': 42, "a\tb": false, "c'd": nil }
{ "foo-#{key}": 'foo_value', 'bar-key': 42, "a\tb": false, "c'd": nil }
EOS
EOS

before do
load_sub_snippets(%w[ruby/new_1_9_hash_syntax])
Expand Down

0 comments on commit 8d53f13

Please sign in to comment.