Upgrade unparser gem dependency
* Fix failing "canary" specs * Not all mutations can be performed yet for rescue, but this is an improvement since it does not raise an exception.
This commit is contained in:
parent
1057425e1b
commit
b6964574cd
2 changed files with 12 additions and 10 deletions
|
@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
||||||
gem.executables = %w[mutant]
|
gem.executables = %w[mutant]
|
||||||
|
|
||||||
gem.add_runtime_dependency('parser', '~> 2.0.0.pre3')
|
gem.add_runtime_dependency('parser', '~> 2.0.0.pre3')
|
||||||
gem.add_runtime_dependency('unparser', '~> 0.0.10')
|
gem.add_runtime_dependency('unparser', '~> 0.0.11')
|
||||||
gem.add_runtime_dependency('ice_nine', '~> 0.8.0')
|
gem.add_runtime_dependency('ice_nine', '~> 0.8.0')
|
||||||
gem.add_runtime_dependency('descendants_tracker', '~> 0.0.1')
|
gem.add_runtime_dependency('descendants_tracker', '~> 0.0.1')
|
||||||
gem.add_runtime_dependency('adamantium', '~> 0.0.10')
|
gem.add_runtime_dependency('adamantium', '~> 0.0.10')
|
||||||
|
|
|
@ -4,17 +4,19 @@ require 'spec_helper'
|
||||||
|
|
||||||
describe Mutant::Mutator::Node::Generic, 'rescue' do
|
describe Mutant::Mutator::Node::Generic, 'rescue' do
|
||||||
let(:source) { 'begin; rescue Exception => e; end' }
|
let(:source) { 'begin; rescue Exception => e; end' }
|
||||||
let(:mutations) { [] }
|
|
||||||
|
|
||||||
# TODO: remove once unparser is fixed
|
let(:mutations) do
|
||||||
it 'does not raise an exception when unparsing source' do
|
mutations = []
|
||||||
pending 'unparser bug' do
|
mutations << 'begin; rescue Exception => srandom; end'
|
||||||
expect { Unparser.unparse(Parser::CurrentRuby.parse(source)) }
|
mutations << 'begin; rescue nil => e; end'
|
||||||
.to_not raise_error
|
mutations << 'begin; rescue => e; end'
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
pending 'unparser bug' do
|
before do
|
||||||
|
Mutant::Random.stub(:hex_string => 'random')
|
||||||
|
end
|
||||||
|
|
||||||
|
pending do
|
||||||
it_should_behave_like 'a mutator'
|
it_should_behave_like 'a mutator'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue