Sha256: 6972aff3fa30bcaa719ac046d888ebf1a8ddc1bf1400085d2f8101631b5a6c4f

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 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 '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

1 entries across 1 versions & 1 rubygems

Version Path
active_decorator-0.5.0 spec/features/action_view_helpers_spec.rb