Fix compatibility with rspec 3.3

dev
Andy Meneely 2015-07-27 13:38:43 -04:00
parent e03a97ce7e
commit 5bbde3a259
3 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ describe Squib::Args::InputFile do
it 'raises on non-existent file' do it 'raises on non-existent file' do
args = {file: 'foo.rb'} args = {file: 'foo.rb'}
expect { ifile.load!(args, expand_by: 1) }.to raise_error expect { ifile.load!(args, expand_by: 1) }.to raise_error("File #{File.expand_path('foo.rb')} does not exist!")
end end
end end

View File

@ -61,6 +61,7 @@ def scrub_hex(str)
.gsub(/#<Cairo::Matrix:.*>/,'Matrix') .gsub(/#<Cairo::Matrix:.*>/,'Matrix')
.gsub(/#<RSVG::Handle.*>/,'RSVG::Handle') .gsub(/#<RSVG::Handle.*>/,'RSVG::Handle')
.gsub(/#<RSpec::Mocks::Double:.*>/,'MockDouble') .gsub(/#<RSpec::Mocks::Double:.*>/,'MockDouble')
.gsub(/#<Double .*>/,'MockDouble')
.gsub(/RGB:\w{1,8}/,'RGB:') .gsub(/RGB:\w{1,8}/,'RGB:')
end end

View File

@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'bundler', '~> 1.6' spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake' spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', '~> 3.2.0' spec.add_development_dependency 'rspec', '~> 3.3'
spec.add_development_dependency 'redcarpet', '~> 3.1' spec.add_development_dependency 'redcarpet', '~> 3.1'
spec.add_development_dependency 'github-markup', '~> 1.3' spec.add_development_dependency 'github-markup', '~> 1.3'
# spec.add_development_dependency 'yard', '~> 0.8' # spec.add_development_dependency 'yard', '~> 0.8'