Skip to content

Commit

Permalink
fix: change expect
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Vasquez authored and ChaelCodes committed Oct 8, 2021
1 parent 93b695b commit 0dfbe1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/requests/profiles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,15 @@
end

context "with admin" do
let(:profile) { create :profile, handle: "Foo" }
let(:user) { create :user, :admin }

include_examples "unauthorized access"

it "does not update the profile" do
patch_update
profile.reload
expect(profile.handle).not_to eq "ChaelChats"
expect(profile.handle).to eq "Foo"
end
end
end
Expand Down

0 comments on commit 0dfbe1d

Please sign in to comment.