Skip to content

Commit

Permalink
Reuse already defined names in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
snusnu committed Jul 11, 2013
1 parent 6a3eaf3 commit 9674d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/substation/processor/api/responder/included_spec.rb
Expand Up @@ -17,7 +17,7 @@
end
end

[ :success, :error ].each do |method_name|
described_class::API_METHOD_MAPPING.keys.each do |method_name|
it "raises NotImplementedError when calling ##{method_name}" do
msg = "#{subject.class}#respond_with must be implemented"
expect {
Expand All @@ -38,7 +38,7 @@ def respond_with(klass, output)
end
end

[ :success, :error ].each do |method_name|
described_class::API_METHOD_MAPPING.keys.each do |method_name|
it "defines public ##{method_name} on its host" do
expect(subject.public_send(method_name, output)).to eql(send(method_name))
end
Expand Down

0 comments on commit 9674d28

Please sign in to comment.