Sha256: b88ac23d24da05e850fe1399ea44f393ec63800c255d25102f27c46156845e54
Contents?: true
Size: 539 Bytes
Versions: 4
Compression:
Stored size: 539 Bytes
Contents
require File.expand_path('../test_helper', File.dirname(__FILE__)) class SofaGallery::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 => sofa_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
4 entries across 4 versions & 1 rubygems