Sha256: 8b6f1480e3687f0b221bc47b462386fbfd486fe57246ce862d2e0af036fddef0

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 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

3 entries across 3 versions & 1 rubygems

Version Path
action_args-2.5.0 test/controllers/ordinal_controller_test.rb
action_args-2.4.0 test/controllers/ordinal_controller_test.rb
action_args-2.3.2 test/controllers/ordinal_controller_test.rb