summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r--spec/models/project_spec.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 4bcd130..44a6f51 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -126,8 +126,7 @@ describe Project do
let(:project_dump) { File.read(Rails.root.join('spec/support/gitlab_stubs/raw_project.yml')) }
let(:parsed_project) { Project.parse(project_dump) }
- #before { parsed_project.build_default_job }
-
+
it { parsed_project.should be_valid }
it { parsed_project.should be_kind_of(Project) }
it { parsed_project.name.should eq("GitLab / api.gitlab.org") }
@@ -152,22 +151,6 @@ describe Project do
it { should include(project.gitlab_url[7..-1]) }
end
- describe "#skip_ref?" do
- let(:project) { FactoryGirl.create(:project, skip_refs: "master, develop, feature/*") }
-
- it 'returns true when item is not in list' do
- expect(project.skip_ref?('someotherstring')).to eq false
- end
-
- it 'accepts string values' do
- expect(project.skip_ref?('master')).to eq true
- end
-
- it 'accepts glob pattern syntax' do
- expect(project.skip_ref?('feature/some_feature')).to eq true
- end
- end
-
describe :search do
let!(:project) { FactoryGirl.create(:project, name: "foo") }