Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r--spec/models/repository_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
new file mode 100644
index 00000000000..6a95b5b33c0
--- /dev/null
+++ b/spec/models/repository_spec.rb
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+describe Repository do
+ include RepoHelpers
+
+ let(:repository) { create(:project).repository }
+
+ describe :branch_names_contains do
+ subject { repository.branch_names_contains(sample_commit.id) }
+
+ it { should include('master') }
+ it { should_not include('feature') }
+ it { should_not include('fix') }
+ end
+end