Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # spec/controllers/my_resource_controller_spec.rb
  2. require 'spec_helper'
  3.  
  4. describe MyResourceController do
  5. Dictum.resource(name: 'MyResource', description: 'This is MyResource description.')
  6.  
  7. describe '#some_method' do
  8. context 'some context of my resource' do
  9.  
  10. it 'returns status ok', dictum: true, dictum_description: 'Some description of the endpoint.' do
  11. get :index
  12. expect(response_status).to eq(200)
  13. end
  14.  
  15. end
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement