Sha256: 9f41d5d4734b0c25b968fb0ccef57b623afe5a6c8ea54c5d061abe7686e043ae

Contents?: true

Size: 569 Bytes

Versions: 13

Compression:

Stored size: 569 Bytes

Contents

require 'spec_helper'

describe EmailHelper do
  helper EmailHelper

  before { I18n.locale = :en }

  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.slug}\n" }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mumuki-laboratory-5.0.12 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.11 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.10 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.9 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.8 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.7 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.6 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.5 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.4 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.3 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.2 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.0.0 spec/helpers/email_helper_spec.rb