Sha256: a28dbbe197cf7227c86560a6e0fbf062655cbda6434a26c5252e5d6ca16f50c1

Contents?: true

Size: 294 Bytes

Versions: 15

Compression:

Stored size: 294 Bytes

Contents

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

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