Skip to content

Commit

Permalink
Merge pull request #113 from jacksonpires/move-all-lookbook-tests-to-…
Browse files Browse the repository at this point in the history
…rbui

Move all Lookbook tests to RBUI namespace
  • Loading branch information
SethHorsley authored Sep 18, 2024
2 parents c95df69 + 0f0f131 commit fd06910
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion test/components/previews/rbui/accordion_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class AccordionPreview < Lookbook::Preview
ITEMS = [
{title: "Item 1", content: "Content 1"},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class AlertDialogPreview < Lookbook::Preview
# Default AlertDialog
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class AlertPreview < Lookbook::Preview
# Default Alert
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/aspect_ratio_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class AspectRatioPreview < Lookbook::Preview
# AspectRatio 16/9
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class AvatarPreview < Lookbook::Preview
# Avatar sizes
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/badge_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# rubocop:disable Layout/LineLength

module Rbui
module RBUI
class BadgePreview < Lookbook::Preview
# Default Badge
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/button_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class ButtonPreview < Lookbook::Preview
# Primary Button
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class CalendarPreview < Lookbook::Preview
def default
render(TestView.new) do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class CardPreview < Lookbook::Preview
# Default CardPreview
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/checkbox_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class CheckboxPreview < Lookbook::Preview
# Default Checkbox
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/clipboard_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class ClipboardPreview < Lookbook::Preview
# Default Clipboard
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/codeblock_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class CodeblockPreview < Lookbook::Preview
# Default Codeblock
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class CollapsiblePreview < Lookbook::Preview
# Default Collapsible
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/combobox_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class ComboboxPreview < Lookbook::Preview
# Default Combobox
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class CommandPreview < Lookbook::Preview
# Default Command
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class ContextMenuPreview < Lookbook::Preview
# Default ContextMenu
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class DatePickerPreview < Lookbook::Preview
# Default DatePicker
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class DialogPreview < Lookbook::Preview
# Default Dialog
# ---------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# rubocop:disable Layout/LineLength

module PhlexUi
module RBUI
class DropdownMenuPreview < Lookbook::Preview
# Default DropdownMenu
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/form_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class FormPreview < Lookbook::Preview
# Default Form
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class HoverCardPreview < Lookbook::Preview
# Default HoverCard
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/input_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class InputPreview < Lookbook::Preview
# Email Input
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/link_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class LinkPreview < Lookbook::Preview
# Default Link
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class PaginationPreview < Lookbook::Preview
# Default Pagination
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/popover_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# rubocop:disable Layout/LineLength

module Rbui
module RBUI
class PopoverPreview < Lookbook::Preview
# Default Popover
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/select_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class SelectPreview < Lookbook::Preview
def default
render(TestView.new) do
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/sheet_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class SheetPreview < Lookbook::Preview
# Default Sheet
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/shortcut_key_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class ShortcutKeyPreview < Lookbook::Preview
def default
render(TestView.new) do
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/table_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class TablePreview < Lookbook::Preview
# Default TablePreview
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module PhlexUi
module RBUI
class TabsPreview < Lookbook::Preview
# Default TabsPreview
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/theme_toggle_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class ThemeTogglePreview < Lookbook::Preview
def default
render(TestView.new) do
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/tooltip_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class TooltipPreview < Lookbook::Preview
# Default TooltipPreview
# ---------------
Expand Down
2 changes: 1 addition & 1 deletion test/components/previews/rbui/typography_preview.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Rbui
module RBUI
class TypographyPreview < Lookbook::Preview
# H1
# ---------------
Expand Down

0 comments on commit fd06910

Please sign in to comment.