diff options
| author | Felipe Artur <fcardozo@gitlab.com> | 2018-06-21 12:22:40 +0000 |
|---|---|---|
| committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-06-21 12:22:40 +0000 |
| commit | 3e66795ef1ff1228906239763910b051d8afcc37 (patch) | |
| tree | df6424d9ec008f5d1da455f8465681b371c4a11e /spec/javascripts/fixtures/commit.rb | |
| parent | 14e35ac9b19d358d84e0cfd167f74036937285b6 (diff) | |
| download | gitlab-ce-3e66795ef1ff1228906239763910b051d8afcc37.tar.gz | |
Changes tab VUE refactoring
Diffstat (limited to 'spec/javascripts/fixtures/commit.rb')
| -rw-r--r-- | spec/javascripts/fixtures/commit.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/commit.rb b/spec/javascripts/fixtures/commit.rb new file mode 100644 index 00000000000..351db6ba184 --- /dev/null +++ b/spec/javascripts/fixtures/commit.rb @@ -0,0 +1,33 @@ +require 'spec_helper' + +describe Projects::CommitController, '(JavaScript fixtures)', type: :controller do + include JavaScriptFixturesHelpers + + set(:project) { create(:project, :repository) } + set(:user) { create(:user) } + let(:commit) { project.commit("master") } + + render_views + + before(:all) do + clean_frontend_fixtures('commit/') + end + + before do + project.add_master(user) + sign_in(user) + end + + it 'commit/show.html.raw' do |example| + params = { + namespace_id: project.namespace, + project_id: project, + id: commit.id + } + + get :show, params + + expect(response).to be_success + store_frontend_fixture(response, example.description) + end +end |
