summaryrefslogtreecommitdiff
path: root/features/steps/project/browse_git_repo.rb
blob: 983b78e10a881ee85d02bd79c87b20531d1f2c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Spinach::Features::ProjectBrowseGitRepo < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedProject
  include SharedPaths

  Given 'I click on ".gitignore" file in repo' do
    click_link ".gitignore"
  end

  And 'I click blame button' do
    click_link "blame"
  end

  Then 'I should see git file blame' do
    page.should have_content "*.rb"
    page.should have_content "Dmitriy Zaporozhets"
    page.should have_content "Initial commit"
  end
end