Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sinatra-skeleton
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Ernesto Suarez
sinatra-skeleton
Commits
d1b12d6d
Commit
d1b12d6d
authored
May 19, 2016
by
Vaz Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README for this branch
parent
109a3e61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
README.md
README.md
+22
-2
No files found.
README.md
View file @
d1b12d6d
...
@@ -3,8 +3,28 @@ Sinatra
...
@@ -3,8 +3,28 @@ Sinatra
Brought to you by Lighthouse Labs
Brought to you by Lighthouse Labs
## This branch
This branch was created for the breakout session on May 18, 2016 to
introduce basic acceptance testing and go over how this can be added
to the Sinatra skeleton, and the basic pattern of these tests.
Acceptance testing can save you filling in form fields over and over
manually to test your app's behaviour. They're much higher-level than
unit tests which are generally much more specific and focus on
code concepts (classes, objects, methods). An acceptance test with Capybara
will instead verify very high-level behaviour by interacting with an
application the way a user would and then checking how it "looks".
[
Here's a gist with a lot more
detail.](https://gist.github.com/vaz/a50c26831ff9c27911c0923a906cafef)
## Getting Started
## Getting Started
1.
`bundle install`
1.
`bundle install`
2.
`shotgun -p 3000 -o 0.0.0.0`
2.
`RACK_ENV`
bundle exec rake db:create
3.
Visit
`http://localhost:3000/`
in your browser
3.
`RACK_ENV`
bundle exec rake db:migrate
4.
`bundle exec rspec`
See
`spec/spec_helper.rb`
and
`spec/acceptance/*`
especially for
more detail.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment