Sha256: 1e96f1867a9cdce1fc90608edf928eef289806c5a0a2ac098c3536bba0a6f387

Contents?: true

Size: 568 Bytes

Versions: 38

Compression:

Stored size: 568 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.slug}\n" }
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
mumuki-laboratory-6.5.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.5.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.4.2 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.4.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.4.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.2.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.1.5 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.0.4 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.1.4 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.1.3 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.0.3 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.1.2 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.1.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.1.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.0.2 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.0.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-6.0.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.13.0 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.12.1 spec/helpers/email_helper_spec.rb
mumuki-laboratory-5.12.0 spec/helpers/email_helper_spec.rb