1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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.
This commit is contained in:
Matt Wildig 2012-05-29 20:31:21 +01:00
parent f948c236fe
commit 1c36d54778

View file

@ -100,7 +100,7 @@ class DelegatorTest < Test::Unit::TestCase
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