Guest User

Untitled

a guest
Feb 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. require File.dirname(__FILE__) + '/../test_helper'
  2.  
  3. class PageTest < Test::Unit::TestCase
  4. context "A page instance" do
  5. should "be able to have children" do
  6. assert_difference "Page.count", 1 do
  7. assert_difference "pages(:home).children.size", 1 do
  8. pages(:home).children.create(:title=>"Sign Up", :body=>"Sign up text!")
  9. end
  10. end
  11. end
  12. end
  13. end
Add Comment
Please, Sign In to add comment