un-skip test and remove unused class definition (#792)

* un-skip test and remove unused class definition

* fix build
This commit is contained in:
C.J. Howard 2017-03-31 18:41:59 -05:00 committed by Cliff Braton
parent e79ae14518
commit 2af5f9dd47
2 changed files with 3 additions and 4 deletions

View File

@ -190,11 +190,12 @@ module Draper
end
it "raises an UninferrableObjectError for a decorator without a model" do
skip
expect{OtherDecorator.object_class}.to raise_error UninferrableObjectError
SomeDecorator = Class.new(Draper::Decorator)
expect{SomeDecorator.object_class}.to raise_error UninferrableObjectError
end
it "raises an UninferrableObjectError for other naming conventions" do
ProductPresenter = Class.new(Draper::Decorator)
expect{ProductPresenter.object_class}.to raise_error UninferrableObjectError
end

View File

@ -19,8 +19,6 @@ 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