1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/spec/spec_helper.rb

54 lines
1.6 KiB
Ruby
Raw Normal View History

require 'bundler/setup'
2012-05-09 18:58:19 -04:00
require 'ammeter/init'
2012-04-28 15:26:57 -04:00
require 'rails'
require 'action_view'
Bundler.require
require './spec/support/samples/active_model'
require './spec/support/samples/active_record'
require './spec/support/samples/application_helper'
require './spec/support/samples/decorator'
require './spec/support/samples/decorator_with_allows'
require './spec/support/samples/decorator_with_multiple_allows'
require './spec/support/samples/decorator_with_application_helper'
require './spec/support/samples/decorator_with_denies'
2012-08-11 21:40:25 -04:00
require './spec/support/samples/decorator_with_denies_all'
require './spec/support/samples/decorator_with_special_methods'
require './spec/support/samples/namespaced_product'
require './spec/support/samples/namespaced_product_decorator'
require './spec/support/samples/non_active_model_product'
require './spec/support/samples/product'
require './spec/support/samples/product_decorator'
2012-07-16 13:23:35 -04:00
require './spec/support/samples/sequel_product'
require './spec/support/samples/specific_product_decorator'
require './spec/support/samples/some_thing'
require './spec/support/samples/some_thing_decorator'
require './spec/support/samples/widget'
require './spec/support/samples/widget_decorator'
require 'action_controller'
require 'action_controller/test_case'
module ActionController
class Base
Draper::System.setup(self)
end
end
module ActiveRecord
class Relation
end
end
require './spec/support/samples/application_helper'
class ApplicationController < ActionController::Base
include ApplicationHelper
helper_method :hello_world
end
class << Rails
undef application # Avoid silly Rails bug: https://github.com/rails/rails/pull/6429
end