From 47e2827adfaa9f9d54b63fea61dfe6e58b067ad8 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 28 Jul 2013 17:45:40 -0700 Subject: [PATCH] Update code to be simpler --- spec/shared/mutator_behavior.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/shared/mutator_behavior.rb b/spec/shared/mutator_behavior.rb index 3a37b59c..4b0793ba 100644 --- a/spec/shared/mutator_behavior.rb +++ b/spec/shared/mutator_behavior.rb @@ -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