Adding hashtags
This commit is contained in:
		| @@ -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' } | ||||
|   | ||||
							
								
								
									
										12
									
								
								spec/controllers/tags_controller_spec.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								spec/controllers/tags_controller_spec.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| require 'rails_helper' | ||||
|  | ||||
| RSpec.describe TagsController, type: :controller do | ||||
|  | ||||
|   describe 'GET #show' do | ||||
|     it 'returns http success' do | ||||
|       get :show, params: { id: 'test' } | ||||
|       expect(response).to have_http_status(:success) | ||||
|     end | ||||
|   end | ||||
|  | ||||
| end | ||||
							
								
								
									
										5
									
								
								spec/helpers/tags_helper_spec.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								spec/helpers/tags_helper_spec.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| require 'rails_helper' | ||||
|  | ||||
| RSpec.describe TagsHelper, type: :helper do | ||||
|  | ||||
| end | ||||
		Reference in New Issue
	
	Block a user