Sha256: d52893ebdbdbfdb62e029b2e823a92682873c54bb7d20a6b3acb61b03b08d9e1

Contents?: true

Size: 511 Bytes

Versions: 15

Compression:

Stored size: 511 Bytes

Contents

require 'test_helper'

class ShowTest < ViewCase
  fixtures :all

  setup :sign_in
  def test_resource_contenets_and_links
    visit adminpanel.product_path(adminpanel_products(:first))
    assert_content(adminpanel_products(:first).name)
    assert_content(adminpanel_products(:first).price)
    assert_content(adminpanel_products(:first).description)
    assert_selector 'i.fa.fa-pencil'
    assert_selector 'i.fa.fa-plus'
  end

  protected
  def sign_in
    visit adminpanel.signin_path
    login
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adminpanel-3.6.1 test/features/shared/resource/show_test.rb
adminpanel-3.6.0 test/features/shared/resource/show_test.rb
adminpanel-3.5.1 test/features/shared/resource/show_test.rb
adminpanel-3.5.0 test/features/shared/resource/show_test.rb
adminpanel-3.4.7 test/features/shared/resource/show_test.rb
adminpanel-3.4.6 test/features/shared/resource/show_test.rb
adminpanel-3.4.5 test/features/shared/resource/show_test.rb
adminpanel-3.4.4 test/features/shared/resource/show_test.rb
adminpanel-3.4.3 test/features/shared/resource/show_test.rb
adminpanel-3.4.2 test/features/shared/resource/show_test.rb
adminpanel-3.4.1 test/features/shared/resource/show_test.rb
adminpanel-3.4.0 test/features/shared/resource/show_test.rb
adminpanel-3.3.4 test/features/shared/resource/show_test.rb
adminpanel-3.3.3 test/features/shared/resource/show_test.rb
adminpanel-3.3.0 test/features/shared/resource/show_test.rb