Fix broken tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-02-04 17:00:32 +01:00
parent dfe12649f6
commit 9f86fcde40
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -42,9 +42,9 @@ describe SearchHelper do
expect(search_autocomplete_opts(project.name).size).to eq(1)
end
it "includes the public group" do
it "should not include the public group" do
group = create(:group)
expect(search_autocomplete_opts(group.name).size).to eq(1)
expect(search_autocomplete_opts(group.name).size).to eq(0)
end
context "with a current project" do