summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-05-04 18:11:20 +0300
committerValery Sizov <vsv2711@gmail.com>2015-05-04 18:11:20 +0300
commitce534e9395b9c6eaaef7400547a5adc613f046a7 (patch)
treec869863d978a26d4864436d91d129b635c18d564 /spec/models/commit_spec.rb
parent5b7589664297fd066324acfb9b6eafe2ad1d432c (diff)
downloadgitlab-ci-ce534e9395b9c6eaaef7400547a5adc613f046a7.tar.gz
Refactoring. Clean up advanced settings. Migrate from gotlab_url to path
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 28cd0ef..75d5610 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -111,7 +111,7 @@ describe Commit do
describe :compare? do
subject { commit_with_project.compare? }
- context 'if project.gitlab_url and commit.before_sha are not nil' do
+ context 'if commit.before_sha are not nil' do
it { should be_true }
end
end
@@ -130,12 +130,6 @@ describe Commit do
it { commit.sha.should start_with(subject) }
end
- describe :gitlab? do
- subject { commit_with_project.gitlab? }
-
- it { should eq(project.gitlab?) }
- end
-
describe "create_deploy_builds" do
it "creates deploy build" do
FactoryGirl.create :job, job_type: :deploy, project: project