Skip to content

Instantly share code, notes, and snippets.

@EngineeredEdge
Created February 2, 2016 18:43
Show Gist options
  • Save EngineeredEdge/5bdfd5f17cc23365c324 to your computer and use it in GitHub Desktop.
Save EngineeredEdge/5bdfd5f17cc23365c324 to your computer and use it in GitHub Desktop.
merge_articles setup
Feature: Write Articles
As a blog administrator
In order to avoid multiple similar articles
I want to be able to merge two articles
Background:
Given the blog is set up
And I am logged into the admin panel
And the following articles exist
| id | title | body |
| 2 | Foobar | LoremIpsum |
| 3 | BobLob | lobs law bomb |
Scenario: Successfully merge articles
Given I am on the article page for "Foobar"
And I fill in "merge_with" with "3"
And I press "Merge"
Then the article "Foobar" should have body "LoremIpsum lobs law bomb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment