Skip to content

Commit 9303a08

Browse files
committed
Fixing standardrb issues
1 parent 5e482da commit 9303a08

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

app/controllers/pages_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

spec/system/cms/collection_page_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require "axe/rspec"
33

44
RSpec.describe("Collection Page", type: [:system]) do
5-
65
before do
76
stub_strapi_blog_collection
87
visit cms_posts_path
@@ -15,5 +14,4 @@
1514
it "adds the resource key as class to main" do
1615
expect(page).to have_css("main.cms-blogs")
1716
end
18-
1917
end

spec/system/cms/resource_page_spec.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
require "axe/rspec"
33

44
RSpec.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
@@ -19,5 +17,4 @@
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-
2320
end

0 commit comments

Comments
 (0)