Logo: Relish

  1. Sign in

Project: relish

Search publisher

On any page for an publisher, you'll see a search box. When you use that search box
to search for a word that's mentioned in any page of documentation for that publisher or
any of it's projects, the page should come up in the results.

Only the latest version of each of the publisher's projects will be searched, so a word that
was only mentioned in an older version of a project will not be found.

Background Create a publisher

The publisher here has some pages of it's own, and a project which has
multiple versions.

Given
a project "rspec/rspec-core"
And
project "rspec-core" has a version named "2.0"
And
project "rspec-core" has a version named "2.1"
Scenarios
Given
a feature has been pushed to the version "2.1":
Feature: Hello world
When
I visit the page for the publisher
And
I search for "world"
And
I follow the link from the search results
Then
I should be on the page for the feature
Search for a word in the publisher's pages
Given
the publisher "rspec" has a page:
This is an introduction to RSpec
And
the publisher "rspec" has a page:
This is some advanced information on RSpec
And
I visit the page for the publisher
When
I search for "introduction"
Then
I should see 1 search result
And
I should see "introduction to RSpec"
Search for a word in the pages of the latest version of the project
Given
a feature has been pushed to the version "2.0":
Feature: Really complex
Given
a feature has been pushed to the version "2.1":
Feature: Much less complex now
And
I visit the page for the publisher
When
I search for "complex"
Then
I should see 1 search result
And
I should see "Much less complex now"
Search for a word in the pages of an older version of the project
Given
a feature has been pushed to the version "2.0":
Feature: Really complex
Given
a feature has been pushed to the version "2.1":
Feature: Much less complex now
And
I visit the page for the publisher
When
I search for "Really complex"
Then
I should see 0 search results
Make sure private stuff can't be seen by visitors
Given
the project "rspec-core" is private
And
a feature has been pushed to the project:
Feature: secret
And
I visit the page for the publisher
When
I search for "secret"
Then
I should see 0 search results
And
I should see "no results"
Search returns no results
And
I visit the page for the publisher
And
I search for "Something impossible to find"
Then
I should see "no results"

Last published over 7 years ago by mattwynne.