Skip to content

Commit

Permalink
Add skipped spec for button :modal option
Browse files Browse the repository at this point in the history
To be unskipped once Phlex 2.0 is released.
  • Loading branch information
davidalejandroaguilar committed Sep 27, 2024
1 parent 82fbb7c commit 004c701
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/lib/phlexy_ui/button_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,18 @@
expect(output).to eq(expected_html)
end
end

xdescribe "passing :modal option" do
subject(:output) do
render described_class.new(:neutral, modal: :my_modal_1)
end

it "renders it correctly" do
expected_html = html <<~HTML
<button class="btn btn-neutral" onclick="my_modal_1.showModal()"></button>
HTML

expect(output).to eq(expected_html)
end
end
end

0 comments on commit 004c701

Please sign in to comment.