File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ def exception
1313 end
1414 end
1515
16-
1716 def i_belong
1817 if current_user
1918 programme = Programme . i_belong
Original file line number Diff line number Diff line change 22require "axe/rspec"
33
44RSpec . describe ( "Collection Page" , type : [ :system ] ) do
5-
65 before do
76 stub_strapi_blog_collection
87 visit cms_posts_path
1514 it "adds the resource key as class to main" do
1615 expect ( page ) . to have_css ( "main.cms-blogs" )
1716 end
18-
1917end
Original file line number Diff line number Diff line change 22require "axe/rspec"
33
44RSpec . describe ( "Resource Page" , type : [ :system ] ) do
5-
65 before do
7- stub_strapi_blog_post ( ' testing' , blog : Cms ::Mocks ::Blog . generate_raw_data (
6+ stub_strapi_blog_post ( " testing" , blog : Cms ::Mocks ::Blog . generate_raw_data (
87 slug : "testing" ,
98 title : "Test blog"
10- )
11- )
12- visit cms_post_path ( 'testing' )
9+ ) )
10+ visit cms_post_path ( "testing" )
1311 end
1412
1513 it "is the correct page" do
1917 it "adds the resource key and id as class to main" do
2018 expect ( page ) . to have_css ( "main.cms-blogs-testing" )
2119 end
22-
2320end
You can’t perform that action at this time.
0 commit comments