-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We are a couple of major versions behind the GOVUK Rubocop rules. This change updates the linter and applies the corrections these new rules introduce.
- Loading branch information
1 parent
3459170
commit aff2c3d
Showing
17 changed files
with
56 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ class TestClass | |
|
||
context "when the class doesn't have a referral object" do | ||
it "returns nil" do | ||
expect(email_known).to eq(nil) | ||
expect(email_address).to eq(nil) | ||
expect(email_known).to be_nil | ||
expect(email_address).to be_nil | ||
end | ||
end | ||
|
||
|
@@ -30,7 +30,7 @@ class TestClass | |
before { test_class.referral = referral } | ||
|
||
it "returns the referral's values" do | ||
expect(email_known).to eq(true) | ||
expect(email_known).to be(true) | ||
expect(email_address).to eq("[email protected]") | ||
end | ||
|
||
|
@@ -41,7 +41,7 @@ class TestClass | |
end | ||
|
||
it "returns the referral's updated values" do | ||
expect(email_known).to eq(false) | ||
expect(email_known).to be(false) | ||
expect(email_address).to eq("[email protected]") | ||
end | ||
end | ||
|
@@ -54,8 +54,8 @@ class TestClass | |
|
||
context "when the class doesn't have an organisation object" do | ||
it "returns nil" do | ||
expect(name).to eq(nil) | ||
expect(street_1).to eq(nil) | ||
expect(name).to be_nil | ||
expect(street_1).to be_nil | ||
end | ||
end | ||
|
||
|
@@ -90,8 +90,8 @@ class TestClass | |
|
||
context "when the class doesn't have a referrer object" do | ||
it "returns nil" do | ||
expect(first_name).to eq(nil) | ||
expect(last_name).to eq(nil) | ||
expect(first_name).to be_nil | ||
expect(last_name).to be_nil | ||
end | ||
end | ||
|
||
|
@@ -125,7 +125,7 @@ class TestClass | |
|
||
context "when the class doesn't have an eligibility_check object" do | ||
it "returns nil" do | ||
expect(serious_misconduct).to eq(nil) | ||
expect(serious_misconduct).to be_nil | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters