The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

19 satır
381 B

  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Api::V1::TrendsController, type: :controller do
  4. render_views
  5. describe 'GET #index' do
  6. before do
  7. allow(TrendingTags).to receive(:get).and_return(Fabricate.times(10, :tag))
  8. get :index
  9. end
  10. it 'returns http success' do
  11. expect(response).to have_http_status(200)
  12. end
  13. end
  14. end