diff options
author | Lisanne Fellinger <lisanne.88@gmail.com> | 2016-10-27 23:08:20 +0300 |
---|---|---|
committer | Lisanne Fellinger <lisanne.88@gmail.com> | 2016-11-07 17:17:52 +0300 |
commit | e6e4147880e831cdc6cc9ef31774297222f654c3 (patch) | |
tree | 3e570264b1dbd7a44dc849818691afd94178d835 /spec/features/projects/files/browse_files_spec.rb | |
parent | c392b0cc24ba40e3fed920c6c693cb24665193af (diff) |
Rewritten spinach git_blame tests to rspec feature tests
Fixing rubocop violations
Relocated git_blame spec and fixed styling issue
Rewritten spinach git_blame tests to rspec feature tests
Fixing rubocop violations
Relocated git_blame spec and fixed styling issue
Rewritten spinach git_blame tests to rspec feature tests
Fixing rubocop violations
Rewritten spinach git_blame tests to rspec feature tests
Fixing rubocop violations
Rewritten spinach git_blame tests to rspec feature tests
Fixing rubocop violations
Relocated git_blame spec and fixed styling issue
Diffstat (limited to 'spec/features/projects/files/browse_files_spec.rb')
-rw-r--r-- | spec/features/projects/files/browse_files_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/projects/files/browse_files_spec.rb b/spec/features/projects/files/browse_files_spec.rb new file mode 100644 index 00000000000..69295e450d0 --- /dev/null +++ b/spec/features/projects/files/browse_files_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +feature 'user checks git blame', feature: true do + let(:project) { create(:project) } + let(:user) { create(:user) } + + before do + project.team << [user, :master] + login_with(user) + visit namespace_project_tree_path(project.namespace, project, project.default_branch) + end + + scenario "can see blame of '.gitignore'" do + click_link ".gitignore" + click_link 'Blame' + + expect(page).to have_content "*.rb" + expect(page).to have_content "Dmitriy Zaporozhets" + expect(page).to have_content "Initial commit" + end +end |