diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-05 15:13:34 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-05 15:13:34 +0200 |
commit | f17c4950fa5a951102d5592dc962f20e302b44aa (patch) | |
tree | 9c6f7078d1db168d8154739d52fc062d5987c3c4 /spec/models/commit_spec.rb | |
parent | 056df41ed16f6eddf3271caad93a118f97e8b58c (diff) | |
download | gitlab-ci-f17c4950fa5a951102d5592dc962f20e302b44aa.tar.gz |
Refactor commits/builds logic
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 75f236b..2b14053 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -141,32 +141,9 @@ describe Commit do it { commit.sha.should start_with(subject) } end - describe :repo_url do - subject { commit_with_project.repo_url } - - it { should be_a(String) } - it { should end_with(".git") } - it { should start_with(project.gitlab_url[0..6]) } - it { should include(project.token) } - it { should include('gitlab-ci-token') } - it { should include(project.gitlab_url[7..-1]) } - end - describe :gitlab? do subject { commit_with_project.gitlab? } it { should eq(project.gitlab?) } end - - describe :allow_git_fetch do - subject { commit_with_project.allow_git_fetch } - - it { should eq(project.allow_git_fetch) } - end - - describe :name do - subject { commit_with_project.project_name } - - it { should eq(project.name) } - end end |