Sha256: a37778f16c44e77bceee5ae4f995a4da057b3eef3bd6de29c31f4c7245a489a3

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :katalyst_navigation_link, aliases: [:navigation_link], class: "Katalyst::Navigation::Link" do
    title { Faker::Beer.hop }
    url { Faker::Internet.unique.url }
  end

  factory :katalyst_navigation_button, aliases: [:navigation_button], class: "Katalyst::Navigation::Button" do
    title { Faker::Beer.hop }
    url { Faker::Internet.unique.url }
    http_method { Katalyst::Navigation::Button::HTTP_METHODS.keys.sample }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katalyst-navigation-1.1.2 spec/factories/katalyst/navigation/items.rb
katalyst-navigation-1.1.1 spec/factories/katalyst/navigation/items.rb
katalyst-navigation-1.1.0 spec/factories/katalyst/navigation/items.rb
katalyst-navigation-1.0.3 spec/factories/katalyst/navigation/items.rb
katalyst-navigation-1.0.2 spec/factories/katalyst/navigation/items.rb
katalyst-navigation-1.0.1 spec/factories/katalyst/navigation/items.rb
katalyst-navigation-1.0.0 spec/factories/katalyst/navigation/items.rb