-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
They've become public now so there's no need for `#send`.
- Loading branch information
1 parent
a51e892
commit 4ae09b0
Showing
1 changed file
with
10 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,22 +34,24 @@ module DirectVerifications | |
|
||
context "when add processed" do | ||
it "has unique emails per type" do | ||
subject.send(:add_processed, :registered, "[email protected]") | ||
subject.send(:add_processed, :registered, "[email protected]") | ||
subject.add_processed(:registered, "[email protected]") | ||
subject.add_processed(:registered, "[email protected]") | ||
expect(subject.processed[:registered].count).to eq(1) | ||
subject.send(:add_processed, :authorized, "[email protected]") | ||
subject.send(:add_processed, :authorized, "[email protected]") | ||
|
||
subject.add_processed(:authorized, "[email protected]") | ||
subject.add_processed(:authorized, "[email protected]") | ||
expect(subject.processed[:authorized].count).to eq(1) | ||
end | ||
end | ||
|
||
context "when add errors" do | ||
it "has unique emails per type" do | ||
subject.send(:add_error, :registered, "[email protected]") | ||
subject.send(:add_error, :registered, "[email protected]") | ||
subject.add_error(:registered, "[email protected]") | ||
subject.add_error(:registered, "[email protected]") | ||
expect(subject.errors[:registered].count).to eq(1) | ||
subject.send(:add_error, :authorized, "[email protected]") | ||
subject.send(:add_error, :authorized, "[email protected]") | ||
|
||
subject.add_error(:authorized, "[email protected]") | ||
subject.add_error(:authorized, "[email protected]") | ||
expect(subject.errors[:authorized].count).to eq(1) | ||
end | ||
end | ||
|