Sha256: 4644dc45cf7038833d8217189d93acb417a2bd3dae8410743f03611cda5aa115
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
require File.expand_path('../../config/environment', __FILE__) require 'minitest/autorun' require 'minitest/rails' def it_is_a_decorator_test it "is a decorator test" do assert_kind_of Draper::TestCase, self end end def it_is_not_a_decorator_test it "is not a decorator test" do refute_kind_of Draper::TestCase, self end end ProductDecorator = Class.new(Draper::Decorator) ProductsDecorator = Class.new(Draper::CollectionDecorator) describe ProductDecorator do it_is_a_decorator_test end describe ProductsDecorator do it_is_a_decorator_test end describe "ProductDecorator" do it_is_a_decorator_test end describe "AnyDecorator" do it_is_a_decorator_test end describe "Any decorator test" do it_is_a_decorator_test end describe Object do it_is_not_a_decorator_test end describe "Nope" do it_is_not_a_decorator_test end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-1.0.0 | spec/dummy/mini_test/mini_test_integration_test.rb |