Adding hashtags
This commit is contained in:
parent
62292797ec
commit
48b9619439
33 changed files with 305 additions and 62 deletions
|
@ -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' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue