diff options
author | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-01-31 01:42:02 +0300 |
---|---|---|
committer | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-02-08 00:42:03 +0300 |
commit | e0a900630c7c61d8c3738440dfb87bb24ebf99d7 (patch) | |
tree | 244c72120dd8e3681a865c2873136744537d6aee /spec/javascripts/fixtures | |
parent | f54917f118f78e08f813d451c152c2571d159829 (diff) |
dismiss sidebar on repo buttons click
make the selector more inclusive
spec for dashboard’s sidebar visibility
fix linting errors for project dashboard page
remove unused var: shouldBeCollapsed
use project with repo, so download button became available
use es6 style for testing project dashboard
un-aliased global reference at sidebar.js.es6
fix spec from linting errors
code improvement
add singleton to `this`
assign `singleton` to class
add space in between
remove `no-underscore-dangle`
add complete changelog
sidebar internal state test
remove on page change, not exist in master. rebase.
only nicescroll if the element is there
new require style
reference to sidebar content outside of timeout
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/projects.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/projects.rb b/spec/javascripts/fixtures/projects.rb new file mode 100644 index 00000000000..56513219e1e --- /dev/null +++ b/spec/javascripts/fixtures/projects.rb @@ -0,0 +1,28 @@ +require 'spec_helper' + +describe ProjectsController, '(JavaScript fixtures)', type: :controller do + include JavaScriptFixturesHelpers + + let(:admin) { create(:admin) } + let(:namespace) { create(:namespace, name: 'frontend-fixtures' )} + let(:project) { create(:project, namespace: namespace, path: 'builds-project') } + + render_views + + before(:all) do + clean_frontend_fixtures('projects/') + end + + before(:each) do + sign_in(admin) + end + + it 'projects/dashboard.html.raw' do |example| + get :show, + namespace_id: project.namespace.to_param, + id: project.to_param + + expect(response).to be_success + store_frontend_fixture(response, example.description) + end +end |