File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments