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.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('descendants_tracker', '~> 0.0.1')
|
||||
gem.add_runtime_dependency('adamantium', '~> 0.0.10')
|
||||
|
|
|
@ -4,17 +4,19 @@ require 'spec_helper'
|
|||
|
||||
describe Mutant::Mutator::Node::Generic, 'rescue' do
|
||||
let(:source) { 'begin; rescue Exception => e; end' }
|
||||
let(:mutations) { [] }
|
||||
|
||||
# TODO: remove once unparser is fixed
|
||||
it 'does not raise an exception when unparsing source' do
|
||||
pending 'unparser bug' do
|
||||
expect { Unparser.unparse(Parser::CurrentRuby.parse(source)) }
|
||||
.to_not raise_error
|
||||
end
|
||||
let(:mutations) do
|
||||
mutations = []
|
||||
mutations << 'begin; rescue Exception => srandom; end'
|
||||
mutations << 'begin; rescue nil => e; end'
|
||||
mutations << 'begin; rescue => e; end'
|
||||
end
|
||||
|
||||
pending 'unparser bug' do
|
||||
before do
|
||||
Mutant::Random.stub(:hex_string => 'random')
|
||||
end
|
||||
|
||||
pending do
|
||||
it_should_behave_like 'a mutator'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue