Update code to be simpler
This commit is contained in:
parent
b6964574cd
commit
47e2827adf
1 changed files with 1 additions and 3 deletions
|
@ -58,9 +58,7 @@ shared_examples_for 'a mutator' do
|
|||
it { should be_instance_of(to_enum.class) }
|
||||
|
||||
let(:expected_mutations) do
|
||||
mutations.map do |mutation|
|
||||
Subject.coerce(mutation)
|
||||
end
|
||||
mutations.map(&Subject.method(:coerce))
|
||||
end
|
||||
|
||||
let(:generated_mutations) do
|
||||
|
|
Loading…
Reference in a new issue