diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 17:29:55 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 17:30:26 +0400 |
commit | 615e4968464949a2e62af5c2cde363db67f37882 (patch) | |
tree | 6afd5c758ea80086f4d25ca9f19eb48a85f92c5c /spec/models | |
parent | c7b825fe14340a7cead56dad23f562c3d7a9e0e1 (diff) |
change user_spec to pass postgres
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/user_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 4e276deaabe..380bbe7351f 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -120,7 +120,7 @@ describe User do end it { @user.several_namespaces?.should be_true } - it { @user.namespaces.should == [@user.namespace, @group] } + it { @user.namespaces.should include(@user.namespace, @group) } it { @user.authorized_groups.should == [@group] } it { @user.owned_groups.should == [@group] } end @@ -155,8 +155,8 @@ describe User do it { User.filter("admins").should == [@admin] } it { User.filter("blocked").should == [@blocked] } - it { User.filter("wop").should == [@user, @admin, @blocked] } - it { User.filter(nil).should == [@user, @admin] } + it { User.filter("wop").should include(@user, @admin, @blocked) } + it { User.filter(nil).should include(@user, @admin) } end describe :not_in_project do @@ -166,7 +166,7 @@ describe User do @project = create :project end - it { User.not_in_project(@project).should == [@user, @project.owner] } + it { User.not_in_project(@project).should include(@user, @project.owner) } end describe 'normal user' do |