un-skip test and remove unused class definition (#792)
* un-skip test and remove unused class definition * fix build
This commit is contained in:
parent
e79ae14518
commit
2af5f9dd47
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue