diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-05 15:20:05 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-05 17:13:14 +0100 |
commit | 48b9619439818ecb344ae33c9c31a55ecb1aa27a (patch) | |
tree | ef350e3ebf2563adbe4d57778a08f561d912415f /spec/controllers/api/v1 | |
parent | 62292797eccc5bcf47abae9f4daaa2c186660644 (diff) |
Adding hashtags
Diffstat (limited to 'spec/controllers/api/v1')
-rw-r--r-- | spec/controllers/api/v1/statuses_controller_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/controllers/api/v1/statuses_controller_spec.rb b/spec/controllers/api/v1/statuses_controller_spec.rb index cf0b3649f..9f9bb0c4f 100644 --- a/spec/controllers/api/v1/statuses_controller_spec.rb +++ b/spec/controllers/api/v1/statuses_controller_spec.rb @@ -80,6 +80,17 @@ RSpec.describe Api::V1::StatusesController, type: :controller do end end + describe 'GET #tag' do + before do + post :create, params: { status: 'It is a #test' } + end + + it 'returns http success' do + get :tag, params: { id: 'test' } + expect(response).to have_http_status(:success) + end + end + describe 'POST #create' do before do post :create, params: { status: 'Hello world' } |