mutant 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ # v0.2.15 2013-01-10
2
+
3
+ * [change] Do not mutate super to super() anymore. This needs a context check in future.
4
+
5
+ [Compare v0.2.14..v0.2.15](https://github.com/mbj/mutant/compare/v0.2.14...v0.2.15)
6
+
1
7
  # v0.2.14 2013-01-09
2
8
 
3
9
  * [change] Do not emit mutation to { nil => nil } for hash literals
@@ -8,6 +8,7 @@ module Mutant
8
8
  handle(Rubinius::AST::Self)
9
9
 
10
10
  # Currently unhandled node classes. Feel free to contribute your mutator!
11
+ handle(Rubinius::AST::ZSuper)
11
12
  handle(Rubinius::AST::ElementAssignment)
12
13
  handle(Rubinius::AST::AttributeAssignment)
13
14
  handle(Rubinius::AST::Not)
@@ -2,23 +2,6 @@ module Mutant
2
2
  class Mutator
3
3
  class Node
4
4
 
5
- # Mutator for super without parantheses
6
- class ZSuper < self
7
-
8
- handle(Rubinius::AST::ZSuper)
9
-
10
- # Emit mutations
11
- #
12
- # @return [undefined]
13
- #
14
- # @api private
15
- #
16
- def dispatch
17
- emit_node(Rubinius::AST::Super, new(Rubinius::AST::ActualArguments))
18
- end
19
-
20
- end
21
-
22
5
  # Mutator for super with parantheses
23
6
  class Super < self
24
7
  handle(Rubinius::AST::Super)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mutant'
5
- gem.version = '0.2.14'
5
+ gem.version = '0.2.15'
6
6
  gem.authors = [ 'Markus Schirp' ]
7
7
  gem.email = [ 'mbj@seonic.net' ]
8
8
  gem.description = 'Mutation testing for ruby'
@@ -5,12 +5,7 @@ describe Mutant::Mutator, 'super' do
5
5
  context 'with no arguments' do
6
6
  let(:source) { 'super' }
7
7
 
8
- let(:mutations) do
9
- mutations = []
10
- mutations << 'super()'
11
- end
12
-
13
- it_should_behave_like 'a mutator'
8
+ it_should_behave_like 'a noop mutator'
14
9
  end
15
10
 
16
11
  context 'with explicit empty arguments' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: to_source