Skip to content
This repository
Browse code

Allow lowercase context name in test/spec/mini

  • Loading branch information...
commit 0c0fc962a8d958d279e5f8f8c15055475ac75449 1 parent f9b13ee
Simon Rozet authored February 14, 2009 rtomayko committed February 17, 2009
2  test/helper.rb
@@ -40,7 +40,7 @@ def mock_app(base=Sinatra::Base, &block)
40 40
 # chris@ozmm.org
41 41
 #
42 42
 def describe(*args, &block)
43  
-  return super unless (name = args.first) && block
  43
+  return super unless (name = args.first.capitalize) && block
44 44
   name = "#{name.gsub(/\W/, '')}Test"
45 45
   Object.send :const_set, name, Class.new(Test::Unit::TestCase)
46 46
   klass = Object.const_get(name)
2  test/options_test.rb
@@ -96,7 +96,7 @@ def foo=(value)
96 96
   end
97 97
 end
98 98
 
99  
-describe 'Backtrace Cleaning (clean_trace option)' do
  99
+describe 'clean_trace' do
100 100
   before do
101 101
     @app = Class.new(Sinatra::Base)
102 102
   end

0 notes on commit 0c0fc96

Please sign in to comment.
Something went wrong with that request. Please try again.