Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536require 'rails_helper'
RSpec.describe 'shared/_category_tabs' do let(:game) { FactoryBot.create(:game, :with_runs) }
context 'with a normal link_type' do it 'renders the category tabs' do render( partial: 'shared/category_tabs', locals: { game: game, current_category: game.categories.first, link_type: :normal } )
expect(view).to render_template('shared/_category_tabs') end end
context 'with a SoB link_type' do it 'renders the category tabs' do render( partial: 'shared/category_tabs', locals: { game: game, current_category: game.categories.first, link_type: :sum_of_best } )
expect(view).to render_template('shared/_category_tabs') end endend