summaryrefslogtreecommitdiff
path: root/features/project/source
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-09-10 04:27:11 -0700
committerNihad Abbasov <narkoz.2008@gmail.com>2012-09-10 04:27:11 -0700
commit080bd12e167dceb3274bb488b7be787379d126b4 (patch)
treea984d98fdfdd01a2ee73ebcb36f29202f1d069ff /features/project/source
parent7aeb92b8e4bb279346d9dcec7bbca1725cec8eb1 (diff)
downloadgitlab-ce-080bd12e167dceb3274bb488b7be787379d126b4.tar.gz
rewrite project commits features using spinach
Diffstat (limited to 'features/project/source')
-rw-r--r--features/project/source/browse_files.feature23
-rw-r--r--features/project/source/git_blame.feature10
2 files changed, 33 insertions, 0 deletions
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