Sha256: 25d286cf957959a9b0c2ea77f3088c579da80f0bd9a8095a40aa38977af1ad57
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require 'test_helper' class AuthorsControllerTest < ActionController::TestCase setup do @author = authors(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:authors) end test "should get new" do get :new assert_response :success end test "should create author" do assert_difference('Author.count') do post :create, :author => @author.attributes end assert_redirected_to author_path(assigns(:author)) end test "should show author" do get :show, :id => @author.to_param assert_response :success end test "should get edit" do get :edit, :id => @author.to_param assert_response :success end test "should update author" do put :update, :id => @author.to_param, :author => @author.attributes assert_redirected_to author_path(assigns(:author)) end test "should destroy author" do assert_difference('Author.count', -1) do delete :destroy, :id => @author.to_param end assert_redirected_to authors_path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-services-0.1.5 | test/rails_app_v3/test/functional/authors_controller_test.rb |