Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 805bf83

Browse files
author
Alan Gabbianelli
authored
Bump govuk-lint from 3.11.0 to 3.11.2 (#742)
Bump govuk-lint from 3.11.0 to 3.11.2
2 parents 8a6d546 + 3f85e32 commit 805bf83

File tree

5 files changed

+42
-37
lines changed

5 files changed

+42
-37
lines changed

Gemfile.lock

+10-12
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ GEM
122122
warden-oauth2 (~> 0.0.1)
123123
globalid (0.4.2)
124124
activesupport (>= 4.2.0)
125-
govuk-lint (3.11.0)
125+
govuk-lint (3.11.2)
126126
rubocop (~> 0.64)
127127
rubocop-rspec (~> 1.28)
128128
scss_lint
@@ -228,8 +228,8 @@ GEM
228228
omniauth-oauth2 (1.3.1)
229229
oauth2 (~> 1.0)
230230
omniauth (~> 1.2)
231-
parallel (1.14.0)
232-
parser (2.6.2.0)
231+
parallel (1.17.0)
232+
parser (2.6.3.0)
233233
ast (~> 2.4.0)
234234
pg (0.21.0)
235235
plek (2.1.1)
@@ -245,7 +245,6 @@ GEM
245245
pry-stack_explorer (0.4.9.3)
246246
binding_of_caller (>= 0.7)
247247
pry (>= 0.9.11)
248-
psych (3.1.0)
249248
public_suffix (3.1.0)
250249
puma (3.12.1)
251250
raabro (1.1.5)
@@ -315,17 +314,16 @@ GEM
315314
rspec-mocks (~> 3.6.0)
316315
rspec-support (~> 3.6.0)
317316
rspec-support (3.6.0)
318-
rubocop (0.66.0)
317+
rubocop (0.71.0)
319318
jaro_winkler (~> 1.5.1)
320319
parallel (~> 1.10)
321-
parser (>= 2.5, != 2.5.1.1)
322-
psych (>= 3.1.0)
320+
parser (>= 2.6)
323321
rainbow (>= 2.2.2, < 4.0)
324322
ruby-progressbar (~> 1.7)
325-
unicode-display_width (>= 1.4.0, < 1.6)
326-
rubocop-rspec (1.32.0)
323+
unicode-display_width (>= 1.4.0, < 1.7)
324+
rubocop-rspec (1.33.0)
327325
rubocop (>= 0.60.0)
328-
ruby-progressbar (1.10.0)
326+
ruby-progressbar (1.10.1)
329327
ruby_dep (1.5.0)
330328
rubyzip (1.2.2)
331329
rufus-scheduler (3.5.0)
@@ -342,7 +340,7 @@ GEM
342340
sprockets (>= 2.8, < 4.0)
343341
sprockets-rails (>= 2.0, < 4.0)
344342
tilt (>= 1.1, < 3)
345-
scss_lint (0.57.1)
343+
scss_lint (0.58.0)
346344
rake (>= 0.9, < 13)
347345
sass (~> 3.5, >= 3.5.5)
348346
sentry-raven (2.7.4)
@@ -399,7 +397,7 @@ GEM
399397
unf (0.1.4)
400398
unf_ext
401399
unf_ext (0.0.7.6)
402-
unicode-display_width (1.5.0)
400+
unicode-display_width (1.6.0)
403401
unicorn (5.4.1)
404402
kgio (~> 2.6)
405403
raindrops (~> 0.7)

spec/controllers/datasets_controller_spec.rb

+27-17
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
end
1010

1111
it "redirects to slugged URL" do
12-
dataset = FactoryBot.create(:dataset,
13-
name: "legit-name",
14-
organisation: organisation,
15-
datafiles: [FactoryBot.create(:datafile)])
12+
dataset = FactoryBot.create(
13+
:dataset,
14+
name: "legit-name",
15+
organisation: organisation,
16+
datafiles: [FactoryBot.create(:datafile)]
17+
)
1618

1719
get :show, params: { uuid: dataset.uuid, name: "absolute-nonsense-name" }
1820

@@ -22,13 +24,17 @@
2224
it "returns '503 forbidden' error if a user is not allowed to view the requested dataset" do
2325
another_organisation = FactoryBot.create(:organisation)
2426

25-
_allowed_dataset = FactoryBot.create(:dataset,
26-
organisation: organisation,
27-
datafiles: [FactoryBot.create(:datafile)])
27+
_allowed_dataset = FactoryBot.create(
28+
:dataset,
29+
organisation: organisation,
30+
datafiles: [FactoryBot.create(:datafile)]
31+
)
2832

29-
forbidden_dataset = FactoryBot.create(:dataset,
30-
organisation: another_organisation,
31-
datafiles: [FactoryBot.create(:datafile)])
33+
forbidden_dataset = FactoryBot.create(
34+
:dataset,
35+
organisation: another_organisation,
36+
datafiles: [FactoryBot.create(:datafile)]
37+
)
3238

3339
get :show, params: { uuid: forbidden_dataset.uuid, name: forbidden_dataset.name }
3440

@@ -38,13 +44,17 @@
3844
it "returns '503 forbidden' error if a user is not allowed to update the requested dataset" do
3945
another_organisation = FactoryBot.create(:organisation)
4046

41-
_allowed_dataset = FactoryBot.create(:dataset,
42-
organisation: organisation,
43-
datafiles: [FactoryBot.create(:datafile)])
44-
45-
forbidden_dataset = FactoryBot.create(:dataset,
46-
organisation: another_organisation,
47-
datafiles: [FactoryBot.create(:datafile)])
47+
_allowed_dataset = FactoryBot.create(
48+
:dataset,
49+
organisation: organisation,
50+
datafiles: [FactoryBot.create(:datafile)]
51+
)
52+
53+
forbidden_dataset = FactoryBot.create(
54+
:dataset,
55+
organisation: another_organisation,
56+
datafiles: [FactoryBot.create(:datafile)]
57+
)
4858

4959
get :edit, params: { uuid: forbidden_dataset.uuid, name: forbidden_dataset.name }
5060

spec/features/ckan_v26_package_sync_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
let!(:dataset_to_ignore) { create :dataset, legacy_name: nil }
1717

1818
let!(:dataset_to_reimport) {
19-
create(:dataset,
19+
create(
20+
:dataset,
2021
legacy_name: "dataset_to_reimport",
2122
uuid: search_dataset_p1["results"][3]["id"],
2223
status: "draft",

spec/features/dataset_publish_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
let(:user) { create(:user, primary_organisation: land) }
66

77
let!(:dataset) do
8-
create :dataset, :with_datafile, :with_doc,
9-
creator: user, organisation: land
8+
create(:dataset, :with_datafile, :with_doc, creator: user, organisation: land)
109
end
1110

1211
before do

spec/models/dataset_spec.rb

+2-5
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,13 @@
2020
end
2121

2222
it "generates a unique slug and stores it on the name column" do
23-
dataset = FactoryBot.create(:dataset,
24-
title: "My awesome dataset")
23+
dataset = FactoryBot.create(:dataset, title: "My awesome dataset")
2524

2625
expect(dataset.name).to eq(dataset.title.parameterize)
2726
end
2827

2928
it "generates a new slug when the title has changed" do
30-
dataset = FactoryBot.create(:dataset,
31-
uuid: 1234,
32-
title: "My awesome dataset")
29+
dataset = FactoryBot.create(:dataset, uuid: 1234, title: "My awesome dataset")
3330

3431
dataset.update(title: "My Even Better Dataset")
3532

0 commit comments

Comments
 (0)