Simpe Demo of Testing Sinatra Web app using rspec
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
spec
.gitignore
README.md
myapp.rb

README.md

Testing Sinatra with RSpec

Requiremnts for this are Sinatra, Rspec and rack-test

gem install sinatra rspec rack-test

from here you can run:

ruby myapp.rb

Then visit 127.0.0.1:4567

To run the test suite

cd ./spec
spec myapp_spec.rb

Further Info

Source
RSpec
Sinatra-testing