Allow lowercase context name in test/spec/mini
This commit is contained in:
parent
f9b13eee80
commit
0c0fc962a8
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue