Sha256: 14eb9f3c5fed2c9721d594648001eee4b4b615fdaeda171cec6edc90b87eedea
Contents?: true
Size: 1 KB
Versions: 7
Compression:
Stored size: 1 KB
Contents
require 'test_helper' class HomesControllerTest < ActionController::TestCase setup do @home = homes(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:homes) end test "should get new" do get :new assert_response :success end test "should create home" do assert_difference('Home.count') do post :create, :home => @home.attributes end assert_redirected_to home_path(assigns(:home)) end test "should show home" do get :show, :id => @home.to_param assert_response :success end test "should get edit" do get :edit, :id => @home.to_param assert_response :success end test "should update home" do put :update, :id => @home.to_param, :home => @home.attributes assert_redirected_to home_path(assigns(:home)) end test "should destroy home" do assert_difference('Home.count', -1) do delete :destroy, :id => @home.to_param end assert_redirected_to homes_path end end
Version data entries
7 entries across 7 versions & 1 rubygems