Sha256: cc7f76a8785b71c8a1517156bc6944c4476dba5d49e8b55d12717dd5730d816d

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

require 'test_helper'

class BooksControllerTest < ActionController::TestCase
  fixtures :all

  setup do
    @book = books(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:books)
  end
  #
  # test "should get new" do
  #   get :new
  #   assert_response :success
  # end
  #
  # test "should create book" do
  #   assert_difference('Book.count') do
  #     post :create, book: { author: @book.author, summary: @book.summary, title: @book.title }
  #   end
  #
  #   assert_redirected_to book_path(assigns(:book))
  # end
  #
  # test "should show book" do
  #   get :show, id: @book
  #   assert_response :success
  # end
  #
  # test "should get edit" do
  #   get :edit, id: @book
  #   assert_response :success
  # end
  #
  # test "should update book" do
  #   patch :update, id: @book, book: { author: @book.author, summary: @book.summary, title: @book.title }
  #   assert_redirected_to book_path(assigns(:book))
  # end
  #
  # test "should destroy book" do
  #   assert_difference('Book.count', -1) do
  #     delete :destroy, id: @book
  #   end
  #
  #   assert_redirected_to books_path
  # end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
librails-0.3.0 test/integration/books_controller_test.rb
librails-0.2.3 test/integration/books_controller_test.rb
librails-0.2.2 test/integration/books_controller_test.rb
librails-0.2.1 test/integration/books_controller_test.rb
librails-0.1.0 test/integration/books_controller_test.rb