mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
18 lines
413 B
Ruby
18 lines
413 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe 'Homes', type: :request do
|
|
describe 'GET /' do
|
|
before do
|
|
stub_request(:any, 'https://api.github.com/repos/Freika/dawarich/tags')
|
|
.to_return(status: 200, body: '[{"name": "1.0.0"}]', headers: {})
|
|
end
|
|
|
|
it 'returns http success' do
|
|
get '/'
|
|
|
|
expect(response).to have_http_status(:success)
|
|
end
|
|
end
|
|
end
|