Sha256: 29f6c3e03a38fc3a79ddf2c8537f260ae8714f56fc0543672ccce1e2804d67f0

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

RSpec.describe <%= camelized_slice_name %>::Views::Parts::<%= camelized_name %> do
<%- if ruby_omit_hash_values? -%>
  subject { described_class.new(value:) }
<%- else -%>
  subject { described_class.new(value: value) }
<%- end -%>
  let(:value) { double("<%= underscored_name %>") }

  it "works" do
    expect(subject).to be_kind_of(described_class)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hanami-rspec-2.2.1 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.2.0 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.2.0.rc1 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.2.0.beta2 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.2.0.beta1 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.1.0 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.1.0.rc2 lib/hanami/rspec/generators/part/part_slice_spec.erb
hanami-rspec-2.1.0.rc1 lib/hanami/rspec/generators/part/part_slice_spec.erb