Skip to content

Commit

Permalink
Allow lowercase context name in test/spec/mini
Browse files Browse the repository at this point in the history
  • Loading branch information
sr authored and rtomayko committed Feb 17, 2009
1 parent f9b13ee commit 0c0fc96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def mock_app(base=Sinatra::Base, &block)
# 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)
Expand Down
2 changes: 1 addition & 1 deletion test/options_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def foo=(value)
end
end

describe 'Backtrace Cleaning (clean_trace option)' do
describe 'clean_trace' do
before do
@app = Class.new(Sinatra::Base)
end
Expand Down

0 comments on commit 0c0fc96

Please sign in to comment.