Skip to content

Instantly share code, notes, and snippets.

@thomasklemm
Created July 14, 2015 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasklemm/226f522f99e485c9c104 to your computer and use it in GitHub Desktop.
Save thomasklemm/226f522f99e485c9c104 to your computer and use it in GitHub Desktop.
RSpec feature specs: Example feature and scenario structure for a list of records
require 'rails_helper'
feature 'task list' do
feature 'listing tasks' do
scenario 'opening the list with the default filters and sorting'
end
feature 'interacting with a task in the list' do
scenario 'adding a task'
scenario 'adding a task on an empty list'
scenario 'completing a task'
scenario 'editing and updating a task'
scenario 'editing a newly added task'
scenario 'destroying a task'
end
feature 'sorting the list' do
scenario 'sorting by creation date'
end
feature 'filtering the list' do
scenario 'filtering by task status'
end
feature 'searching the list' do
scenario 'searching for a task'
scenario 'searching for tasks related to a consultant'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment