Sha256: e4f497ddadaf71df57bd68b3d3f4e89c91f679d7ef7b2fece09e0e2fd52bf71e
Contents?: true
Size: 761 Bytes
Versions: 3
Compression:
Stored size: 761 Bytes
Contents
require 'spec_helper' feature 'fallback to helpers' do background do aamine = Author.create! :name => 'aamine' @rhg = aamine.books.create! :title => 'RHG' end scenario 'invoking action_view helper methods' do visit "/authors/#{@rhg.author.id}/books/#{@rhg.id}" within 'a.title' do page.should have_content 'RHG' end page.should have_css('img') end scenario 'invoking action_view helper methods in rescue_from view' do visit "/authors/#{@rhg.author.id}/books/#{@rhg.id}/error" page.should have_content('ERROR') end scenario 'make sure that action_view + action_mailer works' do visit "/authors/#{@rhg.author.id}/books/#{@rhg.id}" click_link 'purchase' page.should have_content 'done' end end
Version data entries
3 entries across 3 versions & 1 rubygems