Sha256: 63620d0fc1b5c21659c4973d5fe52d1bce278297b2e7da8238ab74009ea01ac5

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

class AuthorsControllerTest < ActionController::TestCase
  test 'GET show' do
    matz = Author.create! name: 'Matz'
    get :show, params: {id: matz.id}
    assert_equal matz, assigns(:author)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
action_args-2.3.1 test/controllers/ordinal_controller_test.rb
action_args-2.3.0 test/controllers/ordinal_controller_test.rb
action_args-2.2.1 test/controllers/ordinal_controller_test.rb
action_args-2.2.0 test/controllers/ordinal_controller_test.rb