We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Beacon
1 parent 10a48ea commit 3954d6eCopy full SHA for 3954d6e
1 file changed
spec/requests/beacons_spec.rb
@@ -131,11 +131,6 @@
131
let(:beacon) { create(:beacon) }
132
subject { post regenerate_key_beacon_url(beacon) }
133
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
-
139
it "redirects to the beacon" do
140
subject
141
@@ -145,11 +140,6 @@
145
context "when there is an error" do
146
before { allow(beacon).to receive(:regenerate).and_raise("Error") }
147
142
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
151
152
153
143
154
144
155
0 commit comments