Guest User

Untitled

a guest
Mar 2nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. def test_notify_with_strange_chars
  2. users = User.find_all
  3. @story = Story.new
  4. @story.title = "Ho`ohanohano I Na Kupuna Puwalu ‘Elua: Ke Kumu Ike Hawai’i"
  5. @story.depttitle = "Science"
  6. @story.summary = "jolly good"
  7. @story.detail = "really jolly"
  8. @story.user = @bob
  9. @story.save
  10. response = StoryMailer.create_notify(MockController.new,users,@story)
  11. assert_equal '['+CommunitySystem::CONFIG[:app_name]+':story] '+ @story.title, response.subject
  12. assert_match /stories\/show\/1/, response.body
  13. #assert_match /New Password: #{newpass}/, response.body
  14. assert_equal users.map{|u| u.email}, response.bcc
  15. assert_equal 'multipart/alternative', response.content_type
  16. end
  17.  
  18. 1) Failure:
  19. test_notify_with_strange_chars(StoryMailerTest)
  20. [./test/unit/story_mailer_test.rb:73:in `test_notify_with_strange_chars'
  21. ./test/unit/../test_helper.rb:165:in `run'
  22. ./test/unit/../test_helper.rb:163:in `each'
  23. ./test/unit/../test_helper.rb:163:in `run'
  24. ./test/unit/../test_helper.rb:165:in `run'
  25. ./test/unit/../test_helper.rb:163:in `each'
  26. ./test/unit/../test_helper.rb:163:in `run']:
  27. <"[disCourse:story] Ho`ohanohano I Na Kupuna Puwalu \201eElua: Ke Kumu Ike Hawai\201fi"> expected but was
  28. <"[disCourse:story] Ho`ohanohano I Na Kupuna Puwalu \302\201eElua: Ke Kumu Ike Hawai\302\201fi">.
Add Comment
Please, Sign In to add comment