diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-07-27 11:26:29 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-07-28 12:24:47 -0400 |
commit | d00679d54f2bbaab9d6963c3b871a03ab8a3d7d6 (patch) | |
tree | 06bd76b683638e149566599ea423ced5c21324a5 /spec/views | |
parent | b24ccd4a67f60731ce2eb6be0129e8cf7228263d (diff) | |
download | gitlab-ce-d00679d54f2bbaab9d6963c3b871a03ab8a3d7d6.tar.gz |
Update to gitlab_git 10.4.1 and take advantage of preserved Ref objects
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/issues/_related_branches.html.haml_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/views/projects/issues/_related_branches.html.haml_spec.rb b/spec/views/projects/issues/_related_branches.html.haml_spec.rb new file mode 100644 index 00000000000..78af61f15a7 --- /dev/null +++ b/spec/views/projects/issues/_related_branches.html.haml_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +describe 'projects/issues/_related_branches' do + include Devise::TestHelpers + + let(:project) { create(:project) } + let(:branch) { project.repository.find_branch('feature') } + let!(:pipeline) { create(:ci_pipeline, project: project, sha: branch.target.id, ref: 'feature') } + + before do + assign(:project, project) + assign(:related_branches, ['feature']) + + render + end + + it 'shows the related branches with their build status' do + expect(rendered).to match('feature') + expect(rendered).to have_css('.related-branch-ci-status') + end +end |