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:
parent
f948c236fe
commit
1c36d54778
|
@ -100,7 +100,7 @@ class DelegatorTest < Test::Unit::TestCase
|
||||||
assert_equal ["helpers", mixin.to_s], app.last_call
|
assert_equal ["helpers", mixin.to_s], app.last_call
|
||||||
end
|
end
|
||||||
|
|
||||||
it "registers helpers with the delegation target" do
|
it "registers middleware with the delegation target" do
|
||||||
app, mixin = mirror, Module.new
|
app, mixin = mirror, Module.new
|
||||||
Sinatra.use mixin
|
Sinatra.use mixin
|
||||||
assert_equal ["use", mixin.to_s], app.last_call
|
assert_equal ["use", mixin.to_s], app.last_call
|
||||||
|
|
Loading…
Reference in New Issue