spec/spec_helper.rb in table_go-0.2.0 vs spec/spec_helper.rb in table_go-0.2.1
- old
+ new
@@ -1,11 +1,9 @@
require 'rubygems'
require 'bundler/setup'
-# require 'rails'
require 'rspec'
require 'action_controller'
-# require 'active_model'
require 'ostruct'
require 'table_go'
require 'haml'
# require 'pry'
@@ -35,6 +33,12 @@
end
def read_file_from_fixtures_path(file)
File.read(File.dirname(__FILE__) + '/fixtures/%s' % file)
+end
+
+def action_view_instance
+ ActionView::Base.new.tap do |view|
+ view.output_buffer = ActiveSupport::SafeBuffer.new rescue ''
+ end
end
\ No newline at end of file