Commit 615e4968464949a2e62af5c2cde363db67f37882
1 parent
c7b825fe
Exists in
master
and in
4 other branches
change user_spec to pass postgres
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
spec/models/user_spec.rb
@@ -120,7 +120,7 @@ describe User do | @@ -120,7 +120,7 @@ describe User do | ||
120 | end | 120 | end |
121 | 121 | ||
122 | it { @user.several_namespaces?.should be_true } | 122 | it { @user.several_namespaces?.should be_true } |
123 | - it { @user.namespaces.should == [@user.namespace, @group] } | 123 | + it { @user.namespaces.should include(@user.namespace, @group) } |
124 | it { @user.authorized_groups.should == [@group] } | 124 | it { @user.authorized_groups.should == [@group] } |
125 | it { @user.owned_groups.should == [@group] } | 125 | it { @user.owned_groups.should == [@group] } |
126 | end | 126 | end |
@@ -155,8 +155,8 @@ describe User do | @@ -155,8 +155,8 @@ describe User do | ||
155 | 155 | ||
156 | it { User.filter("admins").should == [@admin] } | 156 | it { User.filter("admins").should == [@admin] } |
157 | it { User.filter("blocked").should == [@blocked] } | 157 | it { User.filter("blocked").should == [@blocked] } |
158 | - it { User.filter("wop").should == [@user, @admin, @blocked] } | ||
159 | - it { User.filter(nil).should == [@user, @admin] } | 158 | + it { User.filter("wop").should include(@user, @admin, @blocked) } |
159 | + it { User.filter(nil).should include(@user, @admin) } | ||
160 | end | 160 | end |
161 | 161 | ||
162 | describe :not_in_project do | 162 | describe :not_in_project do |
@@ -166,7 +166,7 @@ describe User do | @@ -166,7 +166,7 @@ describe User do | ||
166 | @project = create :project | 166 | @project = create :project |
167 | end | 167 | end |
168 | 168 | ||
169 | - it { User.not_in_project(@project).should == [@user, @project.owner] } | 169 | + it { User.not_in_project(@project).should include(@user, @project.owner) } |
170 | end | 170 | end |
171 | 171 | ||
172 | describe 'normal user' do | 172 | describe 'normal user' do |