Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_notify_with_strange_chars
- users = User.find_all
- @story = Story.new
- @story.title = "Ho`ohanohano I Na Kupuna Puwalu ‘Elua: Ke Kumu Ike Hawai’i"
- @story.depttitle = "Science"
- @story.summary = "jolly good"
- @story.detail = "really jolly"
- @story.user = @bob
- @story.save
- response = StoryMailer.create_notify(MockController.new,users,@story)
- assert_equal '['+CommunitySystem::CONFIG[:app_name]+':story] '+ @story.title, response.subject
- assert_match /stories\/show\/1/, response.body
- #assert_match /New Password: #{newpass}/, response.body
- assert_equal users.map{|u| u.email}, response.bcc
- assert_equal 'multipart/alternative', response.content_type
- end
- 1) Failure:
- test_notify_with_strange_chars(StoryMailerTest)
- [./test/unit/story_mailer_test.rb:73:in `test_notify_with_strange_chars'
- ./test/unit/../test_helper.rb:165:in `run'
- ./test/unit/../test_helper.rb:163:in `each'
- ./test/unit/../test_helper.rb:163:in `run'
- ./test/unit/../test_helper.rb:165:in `run'
- ./test/unit/../test_helper.rb:163:in `each'
- ./test/unit/../test_helper.rb:163:in `run']:
- <"[disCourse:story] Ho`ohanohano I Na Kupuna Puwalu \201eElua: Ke Kumu Ike Hawai\201fi"> expected but was
- <"[disCourse:story] Ho`ohanohano I Na Kupuna Puwalu \302\201eElua: Ke Kumu Ike Hawai\302\201fi">.
Add Comment
Please, Sign In to add comment