OSDN Git Service

fix test
[pettanr/pettanr.git] / spec / spec_helper.rb
index 19d27e0..c0569b6 100644 (file)
@@ -3,6 +3,7 @@ ENV["RAILS_ENV"] ||= 'test'
 require File.expand_path("../../config/environment", __FILE__)
 require 'rspec/rails'
 require 'rspec/autorun'
+require File.dirname(__FILE__) + '/controller_helper'
 
 # Requires supporting ruby files with custom matchers and macros, etc,
 # in spec/support/ and its subdirectories.
@@ -35,4 +36,6 @@ RSpec.configure do |config|
 #  config.extend ControllerMacros, :type => :controller
   config.infer_spec_type_from_file_location!
   config.raise_errors_for_deprecations!
+  
+  config.include ControllerMacros
 end