Sha256: f5d5acaacfb99eba8c99d5330ddbebf5665f301b1e1a4d2542b00caa51f0d92e
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 Bytes
Contents
require 'test_helper' class PartialTest < ActionDispatch::IntegrationTest setup do Author.create! name: 'aamine' nari = Author.create! name: 'nari' nari.books.create! title: 'the gc book' end test 'decorating implicit @object' do visit '/authors' assert page.has_content? 'the gc book' assert page.has_content? 'the gc book'.reverse end test 'decorating implicit @collection' do visit '/authors?partial=collection' assert page.has_content? 'the gc book' assert page.has_content? 'the gc book'.reverse end test 'decorating objects in @locals' do visit '/authors?partial=locals' assert page.has_content? 'the gc book' assert page.has_content? 'the gc book'.upcase end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_decorator-0.7.1 | test/features/partial_test.rb |
active_decorator-0.7.0 | test/features/partial_test.rb |