test/helper.rb in lazy-head-gen-0.5.1 vs test/helper.rb in lazy-head-gen-0.6.0
- old
+ new
@@ -13,11 +13,11 @@
require 'rack'
require 'uuid'
require 'thor/group'
require 'padrino-core/support_lite' unless defined?(SupportLite)
require 'padrino-admin'
-require File.dirname(__FILE__) + '/../lib/lazy-head-gen.rb'
+require 'lazy-head-gen'
begin; require 'turn/autorun'; rescue LoadError; end
Padrino::Generators.load_components!
@@ -28,15 +28,10 @@
file += ".rb" if file !~ /.rb$/
capture_io { load File.join(File.dirname(__FILE__), "fixtures", file) }
end
end
-#class Class
-# # Allow assertions in request context
-# include MiniTest::Assertions
-#end
-
class MiniTest::Unit::TestCase
# Sets up a Sinatra::Base subclass defined with the block
# given. Used in setup or individual spec methods to establish
# the application.
def mock_app(base=Padrino::Application, &block)
@@ -80,17 +75,6 @@
end
def assert_no_match_in_file(pattern, file)
File.exists?(file) ? refute_match(pattern, File.read(file)) : assert_file_exists(file)
end
-
- # Delegate other missing methods to response.
- # def method_missing(name, *args, &block)
- # if response && response.respond_to?(name)
- # response.send(name, *args, &block)
- # else
- # super(name, *args, &block)
- # end
- # end
-
- # alias :response :last_response
end
\ No newline at end of file