diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-05-17 19:11:45 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-05-17 19:11:45 +0300 |
| commit | 9cd8f7b08296d73532c66f06581ff47dab9720a3 (patch) | |
| tree | 1671523db0c0c2b806c750e31217ae3ee4c35cfa /spec | |
| parent | 2e54ac17c5815814f288a1a9a1b30ba79977699c (diff) | |
| download | gitlab-ce-9cd8f7b08296d73532c66f06581ff47dab9720a3.tar.gz | |
New Feature: Git Blame for file
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/requests/file_blame_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/requests/file_blame_spec.rb b/spec/requests/file_blame_spec.rb new file mode 100644 index 00000000000..511f340c1c8 --- /dev/null +++ b/spec/requests/file_blame_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper' + +describe "Blame file" do + before { login_as :user } + + describe "GET /:projectname/:commit/blob/Gemfile" do + before do + @project = Factory :project + @project.add_access(@user, :read) + + visit tree_project_ref_path(@project, @project.root_ref, :path => "Gemfile") + click_link "blame" + end + + it "should be correct path" do + current_path.should == blame_file_project_ref_path(@project, @project.root_ref, :path => "Gemfile") + end + + it "should contain file view" do + page.should have_content("rubygems.org") + page.should have_content("Dmitriy Zaporozhets") + page.should have_content("bc3735004cb Moving to rails 3.2") + end + end +end |
