Sha256: f1eb307ef8d6038cc75de191b82332f3a79c33287431dd94fcdaf37ad4948a71

Contents?: true

Size: 387 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
hanami-1.3.3 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.3.2 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.3.1 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.3.0 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.3.0.beta1 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.2.0 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.2.0.rc2 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.2.0.rc1 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.2.0.beta2 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.2.0.beta1 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.1.1 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.1.0 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.1.0.rc1 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.1.0.beta3 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb
hanami-1.1.0.beta2 lib/hanami/cli/commands/generate/action/action_spec.minitest.erb