Fix devtools API & external gem changes

* Followup with devtools 0.1.3 that fixes some behavior to be more strict
* Followup with ast-0.2.2 that changes #inspect
This commit is contained in:
Markus Schirp 2016-01-24 00:55:00 +00:00
parent bd1c5fd404
commit e92ba607eb
4 changed files with 6 additions and 7 deletions

View file

@ -1,2 +1,2 @@
---
unit_test_timeout: 10
unit_test_timeout: 10.0

View file

@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('ast', '~> 2.1')
gem.add_runtime_dependency('diff-lcs', '~> 1.2')
gem.add_runtime_dependency('parallel', '~> 1.3')
gem.add_runtime_dependency('morpher', '~> 0.2.5')
gem.add_runtime_dependency('morpher', '~> 0.2.6')
gem.add_runtime_dependency('procto', '~> 0.0.2')
gem.add_runtime_dependency('abstract_type', '~> 0.0.7')
gem.add_runtime_dependency('unparser', '~> 0.2.4')
@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('anima', '~> 0.3.0')
gem.add_runtime_dependency('concord', '~> 0.1.5')
gem.add_development_dependency('devtools', '~> 0.1.1')
gem.add_development_dependency('devtools', '~> 0.1.3')
gem.add_development_dependency('bundler', '~> 1.10')
gem.add_development_dependency('ffi', '~> 1.9.6')
end

View file

@ -26,7 +26,6 @@ require 'devtools/spec_helper'
require 'unparser/cli'
require 'mutant'
require 'mutant/meta'
Devtools.init_spec_helper
$LOAD_PATH << File.join(TestApp.root, 'lib')

View file

@ -50,11 +50,11 @@ RSpec.describe Mutant::Reporter::CLI::Printer::MutationResult do
Original unparsed source:
super
Original AST:
(lvar :super)
s(:lvar, :super)
Mutated unparsed source:
super
Mutated AST:
(zsuper)
s(:zsuper)
-----------------------
REPORT
end
@ -73,7 +73,7 @@ RSpec.describe Mutant::Reporter::CLI::Printer::MutationResult do
Original code was inserted unmutated. And the test did NOT PASS.
Your tests do not pass initially or you found a bug in mutant / unparser.
Subject AST:
(true)
s(:true)
Unparsed Source:
true
Test Result: