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