Skip to content
This repository
Browse code

Resolve test name conflict

In delegator_test.rb, there are two tests named
"registers helpers with the delegation target", causing "method
redefined" warnings and the first test not to be run.

Rename the second test so that all tests run.
  • Loading branch information...
commit 1c36d54778dc407fa67b04c240b40e7090602568 1 parent f948c23
Matt Wildig mattwildig authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  test/delegator_test.rb
2  test/delegator_test.rb
@@ -100,7 +100,7 @@ def target
100 100 assert_equal ["helpers", mixin.to_s], app.last_call
101 101 end
102 102
103   - it "registers helpers with the delegation target" do
  103 + it "registers middleware with the delegation target" do
104 104 app, mixin = mirror, Module.new
105 105 Sinatra.use mixin
106 106 assert_equal ["use", mixin.to_s], app.last_call

0 comments on commit 1c36d54

Please sign in to comment.
Something went wrong with that request. Please try again.