Commit 0dff6fd7 authored by Timothy Andrew's avatar Timothy Andrew

Fix rubocop spec.

parent 3adf125a
...@@ -62,8 +62,8 @@ describe ApplicationController do ...@@ -62,8 +62,8 @@ describe ApplicationController do
it "doesn't log the user in otherwise" do it "doesn't log the user in otherwise" do
@request.headers['PRIVATE-TOKEN'] = "token" @request.headers['PRIVATE-TOKEN'] = "token"
get :index, private_token: "token", authenticity_token: "token" get :index, private_token: "token", authenticity_token: "token"
expect(response.status).to_not eq(200) expect(response.status).not_to eq(200)
expect(response.body).to_not eq("authenticated") expect(response.body).not_to eq("authenticated")
end end
end end
...@@ -96,8 +96,8 @@ describe ApplicationController do ...@@ -96,8 +96,8 @@ describe ApplicationController do
it "doesn't log the user in otherwise" do it "doesn't log the user in otherwise" do
get :index, private_token: "token" get :index, private_token: "token"
expect(response.status).to_not eq(200) expect(response.status).not_to eq(200)
expect(response.body).to_not eq('authenticated') expect(response.body).not_to eq('authenticated')
end end
end end
end end
......
...@@ -9,7 +9,7 @@ describe PersonalAccessToken, models: true do ...@@ -9,7 +9,7 @@ describe PersonalAccessToken, models: true do
it "doesn't save the record" do it "doesn't save the record" do
personal_access_token = PersonalAccessToken.generate({}) personal_access_token = PersonalAccessToken.generate({})
expect(personal_access_token).to_not be_persisted expect(personal_access_token).not_to be_persisted
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment