Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. require File.dirname(__FILE__) + '/../test_helper'
  2.  
  3. class TutorialTest < Test::Unit::TestCase
  4.  
  5. fixtures :tutorials
  6.  
  7. def test_that_featured_tutorial_returns_the_most_recently_posted_flashden_tutorial
  8. assert_equal tutorials(:most_recent_flashden), Tutorial.featured_tutorial
  9. end
  10.  
  11. def test_that_learnflash_finder_returns_learn_flash_tutorials_in_reverse_crono_order
  12. assert_equal [tutorials(:most_recent_learnflash), tutorials(:second_most_recent_learnflash)], Tutorial.learnflash_tutorials
  13. end
  14.  
  15. def test_that_flashden_finder_returns_flashden_tutorials_in_reverse_crono_order
  16. assert_equal [tutorials(:most_recent_flashden), tutorials(:second_most_recent_flashden)], Tutorial.flashden_tutorials
  17. end
  18.  
  19. end
Add Comment
Please, Sign In to add comment