Rakefile in rubocop-rspec-1.5.1 vs Rakefile in rubocop-rspec-1.5.2
- old
+ new
@@ -1,7 +1,5 @@
-# encoding: utf-8
-
require 'bundler'
require 'bundler/gem_tasks'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
@@ -24,9 +22,9 @@
desc 'Run RuboCop over this gem'
task :internal_investigation do
require 'rubocop-rspec'
result = RuboCop::CLI.new.run
- abort('RuboCop failed!') unless result == 0
+ abort('RuboCop failed!') unless result.zero?
end
task default: [:spec, :internal_investigation]