Sha256: 77b2f98bd95f13518c9f6f3e5a1a31d16fc2ebf8b10681868838d138d559ecd8

Contents?: true

Size: 411 Bytes

Versions: 15

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'
require_relative '<%= config[:relative_action_path] %>'

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

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
hanami-1.0.0 lib/hanami/generators/action/action_spec.minitest.tt
hanami-1.0.0.rc1 lib/hanami/generators/action/action_spec.minitest.tt
hanami-1.0.0.beta3 lib/hanami/generators/action/action_spec.minitest.tt
hanami-1.0.0.beta2 lib/hanami/generators/action/action_spec.minitest.tt
hanami-1.0.0.beta1 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.9.2 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.9.1 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.9.0 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.8.0 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.7.3 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.7.2 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.7.1 lib/hanami/generators/action/action_spec.minitest.tt
hanami-0.7.0 lib/hanami/generators/action/action_spec.minitest.tt
lotusrb-0.6.1 lib/lotus/generators/action/action_spec.minitest.tt
lotusrb-0.6.0 lib/lotus/generators/action/action_spec.minitest.tt