Created
July 14, 2015 16:58
-
-
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
This file contains hidden or 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
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