Skip to content

Commit

Permalink
Rspec - fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Feb 24, 2022
1 parent 38ab5b0 commit fc039b4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions spec/concerns/authenticable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,11 @@
end

describe "get_payload" do
let (:payload) { subject.get_payload(
uid: subject.symbol.downcase, user: subject, password: 12_345,
) }
it "works" do
expect(
subject.get_payload(
uid: subject.symbol.downcase, user: subject, password: 12_345,
),
).to eq(
expect(payload).to eq(
"uid" => subject.symbol.downcase,
"name" => subject.name,
"email" => subject.system_email,
Expand All @@ -416,5 +415,9 @@
"client_id" => subject.symbol.downcase,
)
end

it "does not contain password" do
expect(payload).to include("role_id")
end
end
end

0 comments on commit fc039b4

Please sign in to comment.