test/features/shared/resource/show_test.rb in adminpanel-3.2.1 vs test/features/shared/resource/show_test.rb in adminpanel-3.3.0
- old
+ new
@@ -3,10 +3,11 @@
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'
@@ -14,8 +15,7 @@
protected
def sign_in
visit adminpanel.signin_path
login
- visit adminpanel.product_path( adminpanel_products(:first) )
end
end