Sha256: fc5f2b5b9a373e43bbb823f6e0df2740cc6e7721f99337a9d464d5242ece473b

Contents?: true

Size: 478 Bytes

Versions: 14

Compression:

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

  protected
  def sign_in
    visit adminpanel.signin_path
    login
    visit adminpanel.product_path( adminpanel_products(:first) )
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
adminpanel-2.4.0 test/features/shared/resource/show_test.rb
adminpanel-2.3.1 test/features/shared/resource/show_test.rb
adminpanel-2.3.0 test/features/shared/resource/show_test.rb
adminpanel-2.2.5 test/features/shared/resource/show_test.rb
adminpanel-2.2.4 test/features/shared/resource/show_test.rb
adminpanel-2.2.3 test/features/shared/resource/show_test.rb
adminpanel-2.2.2 test/features/shared/resource/show_test.rb
adminpanel-2.2.1 test/features/shared/resource/show_test.rb
adminpanel-2.2.0 test/features/shared/resource/show_test.rb
adminpanel-2.1.7 test/features/shared/resource/show_test.rb
adminpanel-2.1.6 test/features/shared/resource/show_test.rb
adminpanel-2.1.5 test/features/shared/resource/show_test.rb
adminpanel-2.1.3 test/features/shared/resource/show_test.rb
adminpanel-2.1.2 test/features/shared/show_test.rb