Skip to content

Commit 2071a2e

Browse files
committed
Gets rid of the redundant specs in the Beacon request spec
1 parent 5a4a59e commit 2071a2e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spec/requests/beacons_spec.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,6 @@
131131
let(:beacon) { create(:beacon) }
132132
subject { post regenerate_key_beacon_url(beacon) }
133133

134-
it "regenerates the API key for the requested beacon" do
135-
expect { subject }.to change { beacon.reload.api_key_digest }
136-
.and change { beacon.reload.api_key_prefix }
137-
end
138-
139134
it "redirects to the beacon" do
140135
subject
141136

@@ -145,11 +140,6 @@
145140
context "when there is an error" do
146141
before { allow(beacon).to receive(:regenerate).and_raise("Error") }
147142

148-
it "does not regenerate the API key for the requested beacon" do
149-
expect { subject }.not_to change { beacon.reload.api_key_digest }
150-
.and change { beacon.reload.api_key_prefix }
151-
end
152-
153143
it "redirects to the beacon" do
154144
subject
155145

0 commit comments

Comments
 (0)