spec/spec_helper.rb in draper-3.0.0.pre1 vs spec/spec_helper.rb in draper-3.0.0
- old
+ new
@@ -17,19 +17,20 @@
class SpecialProduct < Product; end
class Other < Model; end
class ProductDecorator < Draper::Decorator; end
class ProductsDecorator < Draper::CollectionDecorator; end
-class ProductPresenter < Draper::Decorator; end
-
class OtherDecorator < Draper::Decorator; end
module Namespaced
class Product < Model; end
class ProductDecorator < Draper::Decorator; end
-
+ ProductsDecorator = Class.new(Draper::CollectionDecorator)
class OtherDecorator < Draper::Decorator; end
end
+
+ApplicationController = Class.new(ActionController::Base)
+CustomController = Class.new(ActionController::Base)
# After each example, revert changes made to the class
def protect_class(klass)
before { stub_const klass.name, Class.new(klass) }
end