Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow lowercase context name in test/spec/mini

  • Loading branch information...
commit 0c0fc962a8d958d279e5f8f8c15055475ac75449 1 parent f9b13ee
@sr sr authored rtomayko committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  test/helper.rb
  2. +1 −1  test/options_test.rb
View
2  test/helper.rb
@@ -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)
View
2  test/options_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.