free_mutant/spec/unit/mutant/mutator/node/blockarg_spec.rb

18 lines
335 B
Ruby
Raw Normal View History

2013-09-08 23:08:44 -07:00
# encoding: utf-8
require 'spec_helper'
describe Mutant::Mutator::Node::Blockarg, 'blockarg' do
let(:source) { 'foo { |&bar| }' }
let(:mutations) do
mutations = []
mutations << 'foo { |&bar| raise }'
mutations << 'foo {}'
mutations << 'foo'
mutations << 'nil'
end
it_should_behave_like 'a mutator'
end