Sha256: 4af89e8f130c19a062dcfc11d94910b2554e4b588214962f37b53b00644c1631
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class DecoratorTest < Test::Unit::TestCase test 'it returns the object on decoration' do book = Book.new title: 'Boek' assert_equal book, ActiveDecorator::Decorator.instance.decorate(book) end test 'it returns the object when it already is decorated on decorate' do book = Book.new title: 'Boek' assert_equal book, ActiveDecorator::Decorator.instance.decorate(ActiveDecorator::Decorator.instance.decorate(book)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-1.0.0 | test/decorator_test.rb |