Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (24 loc) · 660 Bytes

testing.md

File metadata and controls

38 lines (24 loc) · 660 Bytes

Testing

You can run the test suite using these commands:

# via rake
rake spec

# standalone
rspec

Rspec

The test suite uses Rspec

Rack Test

Request testing is supported by Rack-Test, which facilitates web requests.

  header 'Accept-Charset', 'utf-8'
  get '/'

  assert last_response.ok?
  assert_equal last_response.body, 'All responses are OK'

Factory Bot

Fixtures are supported by Factory Bot