public
Fork of wycats/merb-core
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/auser/merb-core.git
cleaned up a confusing if statement
benburkert (author)
Mon Mar 03 16:10:37 -0800 2008
commit  f23889f34b791e7e2c0c1ec14be47f7577999d20
tree    a6dee5e37980106cfec2706fc1ab40d762b1a0d3
parent  6a54e6c391aa01a9223d2b85772c539fa078214b
...
139
140
141
142
 
143
144
145
...
139
140
141
 
142
143
144
145
0
@@ -139,7 +139,7 @@ module Kernel
0
   # # This will now use the RSpec generator for tests
0
   # $ ruby script/generate controller MyController
0
   def use_test(test_framework, *test_dependencies)
0
- return unless Merb.env == "test" unless Merb.env.nil?
0
+ return unless Merb.env == "test" || Merb.env.nil?
0
     raise "use_test only supports :rspec and :test_unit currently" unless
0
       [:rspec, :test_unit].include?(test_framework.to_sym)
0
     Merb.generator_scope.delete(:rspec)

Comments

    No one has commented yet.