Sha256: 83b295cae4f13bd4b7819a4698d8b896d92bf75d02c7c059f824475631ffb42f

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

require_relative '../../../spec_helper'

describe <%= app.classify %>::Controllers::<%= classified_controller_name %>::<%= action.classify %> do
  let(:action) { <%= app.classify %>::Controllers::<%= classified_controller_name %>::<%= action.classify %>.new }
  let(:params) { Hash[] }

  it 'is successful' do
    response = action.call(params)
    _(response[0]).must_equal 200
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanami-1.3.5 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.3.4 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb