Sha256: 387bedaefa305e69fedb60ae16a6fc9fd0d8df764f2465c31b6b41128ec4fa18

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

require File.expand_path('../../test_helper', File.dirname(__FILE__))

class Gallery::GalleriesControllerTest < ActionController::TestCase
  
  def test_get_index
    get :index
    assert_response :success
    assert_template :index
    assert assigns(:galleries)
  end
  
  def test_get_show
    get :show, :id => gallery_galleries(:default)
    assert_response :success
    assert_template :show
    assert assigns(:gallery)
  end
  
  def test_get_show_failure
    get :show, :id => 'invalid'
    assert_response 404
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfy_gallery-0.1.1 test/functional/gallery/galleries_controller_test.rb
comfy_gallery-0.1.0 test/functional/gallery/galleries_controller_test.rb