Skip to content

Commit eef47c1

Browse files
committed
Fix cops for changed specs
1 parent 05f222c commit eef47c1

7 files changed

+239
-239
lines changed

Diff for: spec/models/authenticator/database_spec.rb

+24-24
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ def authenticate
4040

4141
it "records two successful audit entries" do
4242
expect(AuditEvent).to receive(:success).with({
43-
:event => 'authenticate_database',
44-
:userid => 'alice',
45-
:message => "User alice successfully validated by EVM",
46-
})
43+
:event => 'authenticate_database',
44+
:userid => 'alice',
45+
:message => "User alice successfully validated by EVM",
46+
})
4747
expect(AuditEvent).to receive(:success).with({
48-
:event => 'authenticate_database',
49-
:userid => 'alice',
50-
:message => "Authentication successful for user alice",
51-
})
48+
:event => 'authenticate_database',
49+
:userid => 'alice',
50+
:message => "Authentication successful for user alice",
51+
})
5252
expect(AuditEvent).not_to receive(:failure)
5353
authenticate
5454
end
@@ -93,10 +93,10 @@ def authenticate
9393

9494
it "records one failing audit entry" do
9595
expect(AuditEvent).to receive(:failure).with({
96-
:event => 'authenticate_database',
97-
:userid => 'alice',
98-
:message => "Authentication failed for userid alice",
99-
})
96+
:event => 'authenticate_database',
97+
:userid => 'alice',
98+
:message => "Authentication failed for userid alice",
99+
})
100100
expect(AuditEvent).not_to receive(:success)
101101
authenticate rescue nil
102102
end
@@ -123,10 +123,10 @@ def authenticate
123123

124124
it "records one failing audit entry" do
125125
expect(AuditEvent).to receive(:failure).with({
126-
:event => 'authenticate_database',
127-
:userid => 'bob',
128-
:message => "Authentication failed for userid bob",
129-
})
126+
:event => 'authenticate_database',
127+
:userid => 'bob',
128+
:message => "Authentication failed for userid bob",
129+
})
130130
expect(AuditEvent).not_to receive(:success)
131131
authenticate rescue nil
132132
end
@@ -147,15 +147,15 @@ def authenticate
147147

148148
it "records two successful audit entries" do
149149
expect(AuditEvent).to receive(:success).with({
150-
:event => 'authenticate_database',
151-
:userid => 'vincent',
152-
:message => "User vincent successfully validated by EVM",
153-
})
150+
:event => 'authenticate_database',
151+
:userid => 'vincent',
152+
:message => "User vincent successfully validated by EVM",
153+
})
154154
expect(AuditEvent).to receive(:success).with({
155-
:event => 'authenticate_database',
156-
:userid => 'vincent',
157-
:message => "Authentication successful for user vincent",
158-
})
155+
:event => 'authenticate_database',
156+
:userid => 'vincent',
157+
:message => "Authentication successful for user vincent",
158+
})
159159
expect(AuditEvent).not_to receive(:failure)
160160
authenticate
161161
end

0 commit comments

Comments
 (0)