Sha256: 52371e3fc752831520ff8529967c0f366b37bdb0fae2e9b147a949fe4c7d9891
Contents?: true
Size: 1.19 KB
Versions: 4
Compression:
Stored size: 1.19 KB
Contents
require 'test_helper' class Services::SiteDetailsControllerTest < ActionController::TestCase setup do @site_detail = site_details(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:site_details) end test "should get new" do get :new assert_response :success end test "should create site_detail" do assert_difference('SiteDetail.count') do post :create, :site_detail => @site_detail.attributes end assert_redirected_to services_site_detail_path(assigns(:site_detail)) end test "should show site_detail" do get :show, :id => @site_detail.to_param assert_response :success end test "should get edit" do get :edit, :id => @site_detail.to_param assert_response :success end test "should update site_detail" do put :update, :id => @site_detail.to_param, :site_detail => @site_detail.attributes assert_redirected_to services_site_detail_path(assigns(:site_detail)) end test "should destroy site_detail" do assert_difference('SiteDetail.count', -1) do delete :destroy, :id => @site_detail.to_param end assert_redirected_to services_site_details_path end end
Version data entries
4 entries across 4 versions & 1 rubygems