Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # spec/controllers/my_resource_controller_spec.rb
- require 'spec_helper'
- describe MyResourceController do
- Dictum.resource(name: 'MyResource', description: 'This is MyResource description.')
- describe '#some_method' do
- context 'some context of my resource' do
- it 'returns status ok', dictum: true, dictum_description: 'Some description of the endpoint.' do
- get :index
- expect(response_status).to eq(200)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement