Fix rubocop spec.

This commit is contained in:
Timothy Andrew 2016-06-03 10:10:58 +05:30
parent 3adf125a15
commit 0dff6fd714
3 changed files with 6 additions and 6 deletions

View file

@ -62,8 +62,8 @@ describe ApplicationController do
it "doesn't log the user in otherwise" do
@request.headers['PRIVATE-TOKEN'] = "token"
get :index, private_token: "token", authenticity_token: "token"
expect(response.status).to_not eq(200)
expect(response.body).to_not eq("authenticated")
expect(response.status).not_to eq(200)
expect(response.body).not_to eq("authenticated")
end
end
@ -96,8 +96,8 @@ describe ApplicationController do
it "doesn't log the user in otherwise" do
get :index, private_token: "token"
expect(response.status).to_not eq(200)
expect(response.body).to_not eq('authenticated')
expect(response.status).not_to eq(200)
expect(response.body).not_to eq('authenticated')
end
end
end

View file

@ -9,7 +9,7 @@ describe PersonalAccessToken, models: true do
it "doesn't save the record" do
personal_access_token = PersonalAccessToken.generate({})
expect(personal_access_token).to_not be_persisted
expect(personal_access_token).not_to be_persisted
end
end
end