functional-by-nodeid.diff

Toshi MARUYAMA, 2010-07-27 10:11

Download (929 Bytes)

View differences:

test/functional/repositories_mercurial_controller_test.rb 火 7月 27 17:05:14 2010 +0900
75 75
      assert_equal ['delete.png'], assigns(:entries).collect(&:name)
76 76
    end
77 77
    
78
    def test_show_at_given_nodeid
79
      get :show, :id => 3, :path => ['images'], :rev => '0885933ad4f6'
80
      assert_response :success
81
      assert_template 'show'
82
      assert_not_nil assigns(:entries)
83
      assert_equal ['delete.png'], assigns(:entries).collect(&:name)
84
    end
85

  
78 86
    def test_changes
79 87
      get :changes, :id => 3, :path => ['images', 'edit.png']
80 88
      assert_response :success