Skip to content

Instantly share code, notes, and snippets.

@glowacki-dev
Last active September 3, 2020 06:55
Show Gist options
  • Save glowacki-dev/2d1de022e03ae2ac62da9f1f34203cb3 to your computer and use it in GitHub Desktop.
Save glowacki-dev/2d1de022e03ae2ac62da9f1f34203cb3 to your computer and use it in GitHub Desktop.
require 'acceptance_helper'
resource 'Posts' do
explanation 'Posts are entities holding some text information.
They can be created and seen by anyone'
post '/posts' do
# ... Same as before ...
subject do
ApiRequest.new
end
include_examples 'api_requests',
'Creating a post',
'You can create a post by sending its body text and an optional title'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment