diff --git a/Gemfile b/Gemfile index 184b9a3b..23cb128c 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' gemspec -gem 'mutant', :path => '.' +gem 'mutant', path: '.' -gem 'devtools', :git => 'https://github.com/rom-rb/devtools.git' -eval(File.read(File.join(File.dirname(__FILE__),'Gemfile.devtools'))) +gem 'devtools', git: 'https://github.com/rom-rb/devtools.git' +eval(File.read(File.join(File.dirname(__FILE__), 'Gemfile.devtools'))) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a25c8451..1e8c9795 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,7 +24,7 @@ RSpec.configure do |config| config.include(CompressHelper) config.include(ParserHelper) config.include(Mutant::NodeHelpers) - config.mock_with :rspec do |config| - config.syntax = [:expect, :should] + config.mock_with :rspec do |rspec| + rspec.syntax = [:expect, :should] end end diff --git a/test_app/spec/shared/mutator_behavior.rb b/test_app/spec/shared/mutator_behavior.rb index 8f2dce80..75337730 100644 --- a/test_app/spec/shared/mutator_behavior.rb +++ b/test_app/spec/shared/mutator_behavior.rb @@ -30,7 +30,10 @@ shared_examples_for 'a mutator' do unless subject == expected_mutations message = "Missing mutations: %s\nUnexpected mutations: %s" % - [expected_mutations - subject, subject - expected_mutations ].map(&:to_a).map(&:inspect) + [ + expected_mutations - subject, + subject - expected_mutations + ].map(&:to_a).map(&:inspect) fail message end end diff --git a/test_app/spec/spec_helper.rb b/test_app/spec/spec_helper.rb index 043aad0f..e52d0c4d 100644 --- a/test_app/spec/spec_helper.rb +++ b/test_app/spec/spec_helper.rb @@ -6,4 +6,6 @@ require 'test_app' require 'rspec' # require spec support files and shared behavior -Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each { |f| require f } +Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each do |file| + require file +end diff --git a/test_app/spec/unit/test_app/literal/string_spec.rb b/test_app/spec/unit/test_app/literal/string_spec.rb index 6ef6ccb6..8704f1e7 100644 --- a/test_app/spec/unit/test_app/literal/string_spec.rb +++ b/test_app/spec/unit/test_app/literal/string_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe TestApp::Literal,'#string' do +describe TestApp::Literal, '#string' do subject { object.string } let(:object) { described_class.new }