Logo: Relish

  1. Sign in

Project: relish

Push to a publisher

  • @gem

In order to make my publisher landing pages more useful
As a collaborator with the publisher
I want to publish custom markdown pages

Background
Given
I have authenticated my user account via the console
And
a publisher "rspec"
And
I am a collaborator with the publisher "rspec"
Scenarios
A single markdown file
Given
a file named "features/Introduction.markdown" with:
This is markdown text.
When
I successfully run relish push:publisher rspec
And
I wait until all the jobs have run
When
I go to rspec's publisher page
Then
I should see the topic "Introduction" in the left nav
When
I follow "Introduction"
Then
I should see "This is markdown text."
Sort markdown files
Given
a file named "features/one.markdown" with:
This is markdown text.
Given
a file named "features/two.markdown" with:
This is markdown text.
Given
a file named "features/three.markdown" with:
This is markdown text.
Given
a file named "features/four.markdown" with:
This is markdown text.
Given
a file named "features/.nav" with:
- four.markdown
- two.markdown
- three.markdown
- one.markdown
When
I successfully run relish push:publisher rspec
And
I wait until all the jobs have run
When
I go to rspec's publisher page
Then
I should see the topics listed in the following order:
four
two
three
one
README markdown file
Given
a file named "features/README.markdown" with:
This is markdown text.
When
I successfully run relish push:publisher rspec
And
I wait until all the jobs have run
When
I go to rspec's publisher page
Then
I should see "This is markdown text"
Attempt to push a feature
Given
a file named "features/oops.feature" with:
Feature: Oops
When
I successfully run relish push:publisher rspec
And
I wait until all the jobs have run
And
I sign in
And
I go to my pushes page
Then
I should see that the push failed with "not supported"
Attempt to push a page in a directory
Given
a file named "features/oops/readme.md" with:
Oh dear
When
I successfully run relish push:publisher rspec
And
I wait until all the jobs have run
And
I sign in
And
I go to my pushes page
Then
I should see that the push failed with "not supported"

Last published over 3 years ago by mattwynne.