diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-05 01:35:31 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-05 01:35:31 +0400 |
commit | c6298678f5032823130f5b2eb6fc1810cbb01a10 (patch) | |
tree | 62f9dc24d979bfdddf7420e239fb6c2a21b0704e /spec | |
parent | 14d0ef8f37b68c0911edfb197581bb7e818b1e50 (diff) |
use ui-box as for all
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_hooks_spec.rb | 1 | ||||
-rw-r--r-- | spec/models/project_spec.rb | 16 | ||||
-rw-r--r-- | spec/models/repository_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/team_spec.rb | 6 |
4 files changed, 9 insertions, 16 deletions
diff --git a/spec/models/project_hooks_spec.rb b/spec/models/project_hooks_spec.rb index 77adfe06cff..f306f9e4f75 100644 --- a/spec/models/project_hooks_spec.rb +++ b/spec/models/project_hooks_spec.rb @@ -2,6 +2,7 @@ require 'spec_helper' describe Project, "Hooks" do let(:project) { create(:project) } + before do @key = create(:key, user: project.owner) @user = @key.user diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 54e7bc32c8f..6306c4b89e2 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -76,31 +76,15 @@ describe Project do describe "Respond to" do it { should respond_to(:url_to_repo) } - it { should respond_to(:path_to_repo) } - it { should respond_to(:valid_repo?) } it { should respond_to(:repo_exists?) } - - # Repository Role it { should respond_to(:satellite) } it { should respond_to(:update_repository) } it { should respond_to(:destroy_repository) } - - # Authority Role - it { should respond_to(:reset_access) } - it { should respond_to(:allow_read_for?) } - it { should respond_to(:guest_access_for?) } - it { should respond_to(:report_access_for?) } - it { should respond_to(:dev_access_for?) } - it { should respond_to(:master_access_for?) } - - # Project Push Role it { should respond_to(:observe_push) } it { should respond_to(:update_merge_requests) } it { should respond_to(:execute_hooks) } it { should respond_to(:post_receive_data) } it { should respond_to(:trigger_post_receive) } - - # Namespaced Project Role it { should respond_to(:transfer) } it { should respond_to(:name_with_namespace) } it { should respond_to(:namespace_owner) } diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index b7a17ccf489..e81816404f7 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -1,3 +1,5 @@ +require "spec_helper" + describe Repository do let(:project) { create(:project) } let(:repository) { project.repository } diff --git a/spec/models/team_spec.rb b/spec/models/team_spec.rb index 1e3c7f07c0a..65ffe13b490 100644 --- a/spec/models/team_spec.rb +++ b/spec/models/team_spec.rb @@ -1,5 +1,11 @@ +require "spec_helper" + describe Team do + let(:team) { create(:project).team } + describe "Respond to" do + subject { team } + it { should respond_to(:developers) } it { should respond_to(:masters) } it { should respond_to(:reporters) } |