Sha256: e96c7d2d28a57e4e115f99613e23a274b43a971d04c78163c2a713447062f238

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe <%= File.join(*[namespaced_path, file_path].compact).classify %>::Component, type: :component do
  it "renders the overview preview" do
    render_preview(:overview)
  end

  # it "renders something useful" do
  #   render_inline(described_class.new(<%= attributes.map { |attr| "#{attr.name}: #{attr.name.to_s.inspect}" }.join(", ") %>))
  #
  #   expect(page).to have_text "Hello, components!"
  #   expect(page).to have_css '.value'
  # end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 lib/generators/solidus_admin/component/templates/component_spec.rb.tt
solidus_admin-0.3.1 lib/generators/solidus_admin/component/templates/component_spec.rb.tt
solidus_admin-0.3.0 lib/generators/solidus_admin/component/templates/component_spec.rb.tt
solidus_admin-0.2.0 lib/generators/solidus_admin/component/templates/component_spec.rb.tt
solidus_admin-0.1.0 lib/generators/solidus_admin/component/templates/component_spec.rb.tt
solidus_admin-0.0.2 lib/generators/solidus_admin/component/templates/component_spec.rb.tt
solidus_admin-0.0.1 lib/generators/solidus_admin/component/templates/component_spec.rb.tt