Exercise the application through a System Test
System Testing
This commit adds a foundation for a test harness inspired by Rails’ System Tests.
System tests are the highest level tests available to a web application, and serve as a proxy for the end-user experience.
To drive the application, integrate with Capybara’s Rack mounting capabilities by mounting Middleman as a Rack application.
Dependencies
Utilize Bundler to add a test
group
dependency on Capybara to visit the application from the
test suite through its domain specific language-style navigation
helpers methods.
Extend Minitest’s provided assertions with Capybara-specified assertions.
It is important to require "minitest/autorun"
explicitly, so that a Test Case executes all of the tests it declares,
when executed from the comfort of our command line.
To run the suite, execute:
ruby -I test test/system/visitor_views_readme_test.rb