Skip to content

Commit

Permalink
Fix tag mod spec (forem#1365)
Browse files Browse the repository at this point in the history
* fix slug typo

* fix specs
  • Loading branch information
jessleenyc authored and maestromac committed Dec 19, 2018
1 parent 7ca3d5c commit c2a8554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/labor/assign_tag_moderator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
before do
user_ids = [user_one.id, user_two.id]
tag_names = [tag_one.name, tag_two.name]
ChatChannel.create(slug: "tag_moderators", channel_name: "Tag Moderators", channel_type: "invite_only")
ChatChannel.create(slug: "tag-moderators", channel_name: "Tag Moderators", channel_type: "invite_only")
described_class.add_tag_moderators(user_ids, tag_names)
end

Expand All @@ -18,7 +18,7 @@
end

it "adds user to tag moderator channel" do
channel = ChatChannel.find_by(slug: "tag_moderators")
channel = ChatChannel.find_by(slug: "tag-moderators")
expect(channel.users.count).to eq(2)
end
end

0 comments on commit c2a8554

Please sign in to comment.