Fix some rubocop reported issues

This commit is contained in:
Markus Schirp 2013-07-27 12:34:03 +02:00
parent 97e069ed96
commit 9dd098b03f
5 changed files with 13 additions and 8 deletions

View File

@ -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')))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 }