Skip to content

Commit

Permalink
DEV: Improve test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbianca committed Feb 14, 2019
1 parent 7003ea9 commit e2b8fbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/site_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ def expect_correct_themes(guardian)
site = Site.new(Guardian.new(user))

group = Fabricate(:group, visibility_level: Group.visibility_levels[:staff])
expect(site.groups.pluck(:name)).to eq(["moderators"])
expect(site.groups.pluck(:name)).to contain_exactly("moderators")

group = Fabricate(:group)
expect(site.groups.pluck(:name)).to eq(["moderators", group.name])
expect(site.groups.pluck(:name)).to contain_exactly("moderators", group.name)

admin = Fabricate(:admin)
site = Site.new(Guardian.new(admin))
expect(site.groups.pluck(:name)).to eq(Group.visible_groups(admin).pluck(:name))
expect(site.groups.pluck(:name)).to match_array(Group.visible_groups(admin).pluck(:name))
end

it "includes all enabled authentication providers" do
Expand Down

0 comments on commit e2b8fbe

Please sign in to comment.