Sha256: 2e643b1d7eff5f9bc2d79136489f7a9c9043909d622de97842330c60edb08483
Contents?: true
Size: 810 Bytes
Versions: 21
Compression:
Stored size: 810 Bytes
Contents
require 'spec_helper' feature 'decorating partial object' do background do Author.create! :name => 'aamine' nari = Author.create! :name => 'nari' nari.books.create! :title => 'the gc book' end after do Book.delete_all Author.delete_all end scenario 'decorating implicit @object' do visit '/authors' page.should have_content 'the gc book' page.should have_content 'the gc book'.reverse end scenario 'decorating implicit @collection' do visit '/authors?partial=collection' page.should have_content 'the gc book' page.should have_content 'the gc book'.reverse end scenario 'decorating objects in @locals' do visit '/authors?partial=locals' page.should have_content 'the gc book' page.should have_content 'the gc book'.upcase end end
Version data entries
21 entries across 20 versions & 2 rubygems
Version | Path |
---|---|
active_decorator-0.1.0 | spec/requests/partial_spec.rb |