Sha256: 272b7d1b65b4629e0b941326543943727bc893907a410f0d0aa802ef2282a291

Contents?: true

Size: 578 Bytes

Versions: 116

Compression:

Stored size: 578 Bytes

Contents

require 'spec_helper'

describe EmailHelper, organization_workspace: :test do
  helper EmailHelper

  describe 'page_title' do
    let(:user) { create(:user) }
    let(:guide) { create(:guide, name: 'A Guide') }
    let(:exercise) { create(:problem, name: 'An Exercise', guide: guide, number: 2) }
    let(:assignment) { exercise.submit_solution!(user, content: 'foo') }

    it { expect(assignment_help_email_body assignment).to eq "Exercise: An Exercise\n\nSolution:\nfoo\n\nStatus: failed\n\nSee http://test.localmumuki.io/exercises/#{exercise.transparent_id}\n" }
  end
end

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.22.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.21.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.20.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.20.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.19.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.18.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.18.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.17.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.16.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.15.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.14.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.14.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.13.2 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.13.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.13.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.12.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.12.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.11.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-9.10.0 spec/helpers/email_helper_spec.rb