Sha256: 16ce28ac778b142402d5491538499de8065818beff1971afc03da1eb0d279984

Contents?: true

Size: 386 Bytes

Versions: 10

Compression:

Stored size: 386 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' do
      page.should have_content 'RHG'
    end
    page.should have_css('img')
  end
end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
active_decorator-0.4.0 spec/features/action_view_helpers_spec.rb
active_decorator-0.3.4 spec/features/action_view_helpers_spec.rb
r_decorator-0.0.7 spec/dummy/spec/features/action_view_helpers_spec.rb
r_decorator-0.0.6 spec/dummy/spec/requests/action_view_helpers_spec.rb
r_decorator-0.0.6 spec/features/action_view_helpers_spec.rb
r_decorator-0.0.5 spec/features/action_view_helpers_spec.rb
active_decorator-0.3.3 spec/requests/action_view_helpers_spec.rb
active_decorator-0.3.2 spec/requests/action_view_helpers_spec.rb
active_decorator-0.3.1 spec/requests/action_view_helpers_spec.rb
active_decorator-0.3.0 spec/requests/action_view_helpers_spec.rb