Skip to content

Instantly share code, notes, and snippets.

@stevo
Created May 8, 2018 09:31
Show Gist options
  • Save stevo/1a97e9b8416f044156a692a71fb5e0b6 to your computer and use it in GitHub Desktop.
Save stevo/1a97e9b8416f044156a692a71fb5e0b6 to your computer and use it in GitHub Desktop.
An opinionated guide to readable RSpec (part 2 of 2)
get_json '/v1/days'
expect(json_response[:data]).to include(
{ date: '2018-04-20', sunset_at: '19:47' },
{ date: '2018-04-21', sunset_at: '19:48' },
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment