Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@mattwildig mattwildig authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/delegator_test.rb
View
2  test/delegator_test.rb
@@ -100,7 +100,7 @@ def target
assert_equal ["helpers", mixin.to_s], app.last_call
end
- it "registers helpers with the delegation target" do
+ it "registers middleware with the delegation target" do
app, mixin = mirror, Module.new
Sinatra.use mixin
assert_equal ["use", mixin.to_s], app.last_call
Please sign in to comment.
Something went wrong with that request. Please try again.