Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Su Yan Fang
committed
Mar 1, 2012
1 parent
6d0a98a
commit 4671894
Showing
18 changed files
with
603 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% | ||
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | ||
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | ||
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip" | ||
%> | ||
default: <%= std_opts %> features | ||
wip: --tags @wip:3 --wip features | ||
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Feature: A non_admin can not merge articles | ||
|
||
As a admin | ||
I should be able to merge articles with same topic from different authors | ||
so I can preserve both authors' content | ||
|
||
Background: articles in database | ||
|
||
|
||
|
||
Scenario: user should be admin | ||
|
||
|
||
|
||
|
||
Scenario: admin is able to merge articles | ||
|
||
|
||
|
||
|
||
|
||
Scenario: user is not admin(sad path) | ||
|
||
|
||
|
||
Scenario: user should not be able to merge articles(sad path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: When articles are merged, the merged article should have multiple authors(the authors of the original article) | ||
|
||
As a admin | ||
I want to merge articles | ||
So that merged article should have multiple authors | ||
|
||
Background: articles in database | ||
|
||
Scenario: the merged article should have multiple authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: comments on each of the two original articles need to all carry over and point to the new, merged article | ||
|
||
As a user | ||
I should be able to read both articles' comments appear in the merged article | ||
so I could read comments | ||
Background: articles in database and comments in articles | ||
|
||
|
||
Scenario: I should see both articles'comments appear in the merged article |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: When articles are merged, any of the authors of the original articles should be able to make edits to the merged article | ||
|
||
As a author | ||
I want to edit the merged article | ||
So that merged article is changed | ||
|
||
Background: articles in database | ||
|
||
Scenario: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Feature: When mergeing two articles (and thus deleting at least one of them), the permalinks to the original articles should point to the merged article | ||
|
||
As a user | ||
I should be able to go to the merged article when click on the permalinks | ||
so I could read the merged article | ||
|
||
Background: articles in database | ||
|
||
|
||
|
||
Scenario: one of the articles should be deleted | ||
Scenario: permalink of the remaining article should points to itself | ||
Scenario: permalink of the deleted article should points to the merged article |
Oops, something went wrong.