Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.dirname(__FILE__) + '/../test_helper'
- class TutorialTest < Test::Unit::TestCase
- fixtures :tutorials
- def test_that_featured_tutorial_returns_the_most_recently_posted_flashden_tutorial
- assert_equal tutorials(:most_recent_flashden), Tutorial.featured_tutorial
- end
- def test_that_learnflash_finder_returns_learn_flash_tutorials_in_reverse_crono_order
- assert_equal [tutorials(:most_recent_learnflash), tutorials(:second_most_recent_learnflash)], Tutorial.learnflash_tutorials
- end
- def test_that_flashden_finder_returns_flashden_tutorials_in_reverse_crono_order
- assert_equal [tutorials(:most_recent_flashden), tutorials(:second_most_recent_flashden)], Tutorial.flashden_tutorials
- end
- end
Add Comment
Please, Sign In to add comment