spec/spec_helper.rb in draper-0.18.0 vs spec/spec_helper.rb in draper-1.0.0.beta1

- old
+ new

@@ -1,54 +1,33 @@ require 'bundler/setup' require 'ammeter/init' require 'rails' require 'action_view' -Bundler.require - -require './spec/support/samples/active_record' -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' -require './spec/support/samples/decorator_with_denies_all' -require './spec/support/samples/decorator_with_special_methods' -require './spec/support/samples/enumerable_proxy' -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' -require './spec/support/samples/products_decorator' -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_action_controller(self) - end -end +Bundler.require -module ActiveRecord - class Relation - end -end +require './spec/support/active_model' +require './spec/support/active_record' +require './spec/support/action_controller' -class ApplicationController < ActionController::Base - def hello_world - "Hello, World!" - end - helper_method :hello_world -end +require './spec/support/models/product' +require './spec/support/models/namespaced_product' +require './spec/support/models/non_active_model_product' +require './spec/support/models/widget' +require './spec/support/models/some_thing' +require './spec/support/models/uninferrable_decorator_model' +require './spec/support/decorators/product_decorator' +require './spec/support/decorators/namespaced_product_decorator' +require './spec/support/decorators/non_active_model_product_decorator' +require './spec/support/decorators/widget_decorator' +require './spec/support/decorators/specific_product_decorator' +require './spec/support/decorators/products_decorator' +require './spec/support/decorators/some_thing_decorator' +require './spec/support/decorators/decorator_with_application_helper' class << Rails undef application # Avoid silly Rails bug: https://github.com/rails/rails/pull/6429 end