Allow lowercase context name in test/spec/mini

This commit is contained in:
Simon Rozet 2009-02-14 20:17:39 +01:00 committed by Ryan Tomayko
parent f9b13eee80
commit 0c0fc962a8
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ end
# chris@ozmm.org
#
def describe(*args, &block)
return super unless (name = args.first) && block
return super unless (name = args.first.capitalize) && block
name = "#{name.gsub(/\W/, '')}Test"
Object.send :const_set, name, Class.new(Test::Unit::TestCase)
klass = Object.const_get(name)

View File

@ -96,7 +96,7 @@ describe 'Options' do
end
end
describe 'Backtrace Cleaning (clean_trace option)' do
describe 'clean_trace' do
before do
@app = Class.new(Sinatra::Base)
end