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