Skip to content

Commit

Permalink
specs: fix broken test for case contact decorator
Browse files Browse the repository at this point in the history
Signed-off-by: Sonu Saha <[email protected]>
  • Loading branch information
ahasunos committed Nov 15, 2023
1 parent df99061 commit d66a756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/decorators/case_contact_decorator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@
describe "#medium_icon_classes" do
context "when medium type is in-person" do
it "returns the proper font-awesome classes" do
case_contact.update_attribute(:medium_type, "in-person")
case_contact.update_attribute(:medium_type, "in person")

expect(case_contact.decorate.medium_icon_classes).to eql("lni lni-users")
end
end

context "when medium type is text/email" do
it "returns the proper font-awesome classes" do
case_contact.update_attribute(:medium_type, "text/email")
case_contact.update_attribute(:medium_type, "text or email")

expect(case_contact.decorate.medium_icon_classes).to eql("lni lni-envelope")
end
Expand All @@ -104,7 +104,7 @@

context "when medium type is voice-only" do
it "returns the proper font-awesome classes" do
case_contact.update_attribute(:medium_type, "voice-only")
case_contact.update_attribute(:medium_type, "voice only")

expect(case_contact.decorate.medium_icon_classes).to eql("lni lni-phone")
end
Expand Down

0 comments on commit d66a756

Please sign in to comment.