Add limitations examples for methods in closures

This commit is contained in:
John Backus 2015-10-31 21:17:37 -07:00
parent db71d01a0a
commit 8212585a53

View file

@ -73,6 +73,34 @@ To mutation test Rails models with rspec comment out ```require 'rspec/autorun'`
RAILS_ENV=test bundle exec mutant -r ./config/environment --use rspec User
```
Limitations
-----------
Mutant cannot emit mutations for...
* methods defined within a closure. For example, methods defined using `module_eval`, `class_eval`,
`define_method`, or `define_singleton_method`:
```ruby
class Example
class_eval do
def example1
end
end
module_eval do
def example2
end
end
define_method(:example3) do
end
define_singleton_method(:example4) do
end
end
```
Mutation-Operators:
-------------------