Last active
September 3, 2020 06:55
-
-
Save glowacki-dev/2d1de022e03ae2ac62da9f1f34203cb3 to your computer and use it in GitHub Desktop.
Using ApiRequest (https://gist.github.com/glowacki-dev/33135500ac72ab53f7a56d114c924db1) as test subject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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