Sha256: 27cc924a2f04f865058f3a3e2ce779dbbb364e6e0943e4d1c78c5127d8ec17a9

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

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

  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_base_spec.erb
hanami-rspec-2.2.0 lib/hanami/rspec/generators/part/part_base_spec.erb
hanami-rspec-2.2.0.rc1 lib/hanami/rspec/generators/part/part_base_spec.erb
hanami-rspec-2.2.0.beta2 lib/hanami/rspec/generators/part/part_base_spec.erb
hanami-rspec-2.2.0.beta1 lib/hanami/rspec/generators/part/part_base_spec.erb
hanami-rspec-2.1.0 lib/hanami/rspec/generators/part/part_base_spec.erb
hanami-rspec-2.1.0.rc2 lib/hanami/rspec/generators/part/part_base_spec.erb
hanami-rspec-2.1.0.rc1 lib/hanami/rspec/generators/part/part_base_spec.erb