Sha256: 33bede31d867924ea70829671463ca3301bf083c1937d8a6afecb4c2ced4158c
Contents?: true
Size: 879 Bytes
Versions: 39
Compression:
Stored size: 879 Bytes
Contents
require 'spec_helper' describe IconsHelper, organization_workspace: :test do helper IconsHelper helper FontAwesome::Rails::IconHelper describe '#language_icon' do let(:haskell) { create(:language, name: 'Haskell') } let(:haskell_img_tag) { '<span class="fa da da-haskell lang-icon" alt="Haskell" />' } it { expect(language_icon(haskell)).to include haskell_img_tag } end describe '#status_icon' do let(:passed_submission) { create(:assignment, status: :passed, expectation_results: [], exercise: create(:indexed_exercise)) } let(:failed_submission) { create(:assignment, status: :failed) } it { expect(status_icon(passed_submission)).to eq '<i class="fa fa-check-circle text-success status-icon"></i>' } it { expect(status_icon(failed_submission)).to eq '<i class="fa fa-times-circle text-danger status-icon"></i>' } end end
Version data entries
39 entries across 39 versions & 1 rubygems