From 080bd12e167dceb3274bb488b7be787379d126b4 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Mon, 10 Sep 2012 04:27:11 -0700 Subject: rewrite project commits features using spinach --- features/project/source/browse_files.feature | 23 +++++++++++++++++++++++ features/project/source/git_blame.feature | 10 ++++++++++ 2 files changed, 33 insertions(+) create mode 100644 features/project/source/browse_files.feature create mode 100644 features/project/source/git_blame.feature (limited to 'features/project/source') diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature new file mode 100644 index 00000000000..04aebc19732 --- /dev/null +++ b/features/project/source/browse_files.feature @@ -0,0 +1,23 @@ +Feature: Browse git repo + Background: + Given I signin as a user + And I own project "Shop" + Given I visit project source page + + Scenario: I browse files from master branch + Then I should see files from repository + + Scenario: I browse files for specific ref + Given I visit project source page for "8470d70" + Then I should see files from repository for "8470d70" + + Scenario: I browse file content + Given I click on file from repo + Then I should see it content + + Scenario: I browse raw file + Given I visit blob file from repo + And I click on raw button + Then I should see raw file content + + diff --git a/features/project/source/git_blame.feature b/features/project/source/git_blame.feature new file mode 100644 index 00000000000..6aa6be47deb --- /dev/null +++ b/features/project/source/git_blame.feature @@ -0,0 +1,10 @@ +Feature: Browse git repo + Background: + Given I signin as a user + And I own project "Shop" + Given I visit project source page + + Scenario: I blame file + Given I click on file from repo + And I click blame button + Then I should see git file blame -- cgit v1.2.1