Sha256: 3b215157d75ae6811e3b1d90ec2d7f0f7c69d76686bd608ee80a5d2ffc71930a

Contents?: true

Size: 513 Bytes

Versions: 15

Compression:

Stored size: 513 Bytes

Contents

require 'test_helper'

class ShowTest < ViewCase
  fixtures :all

  setup :sign_in
  def test_resource_contenets_and_links
    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
    visit adminpanel.product_path( adminpanel_products(:first) )
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adminpanel-3.2.1 test/features/shared/resource/show_test.rb
adminpanel-3.2.0 test/features/shared/resource/show_test.rb
adminpanel-3.1.0 test/features/shared/resource/show_test.rb
adminpanel-3.0.0 test/features/shared/resource/show_test.rb
adminpanel-2.6.1 test/features/shared/resource/show_test.rb
adminpanel-2.6.0 test/features/shared/resource/show_test.rb
adminpanel-2.5.5 test/features/shared/resource/show_test.rb
adminpanel-2.5.4 test/features/shared/resource/show_test.rb
adminpanel-2.5.3 test/features/shared/resource/show_test.rb
adminpanel-2.5.2 test/features/shared/resource/show_test.rb
adminpanel-2.5.1 test/features/shared/resource/show_test.rb
adminpanel-2.5.0 test/features/shared/resource/show_test.rb
adminpanel-2.4.3 test/features/shared/resource/show_test.rb
adminpanel-2.4.2 test/features/shared/resource/show_test.rb
adminpanel-2.4.1 test/features/shared/resource/show_test.rb