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