Skip to content

Commit

Permalink
HTML Elements: added <dialog>
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Mar 10, 2017
1 parent 8bb1c95 commit efa21bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/hanami/helpers/html_helper/html_builder.rb
Expand Up @@ -42,6 +42,7 @@ class HtmlBuilder # rubocop:disable Metrics/ClassLength
datalist
del
details
dialog
dfn
div
dl
Expand Down
7 changes: 7 additions & 0 deletions test/html_helper/html_builder_test.rb
Expand Up @@ -94,6 +94,13 @@
end
end

describe '<dialog>' do
it 'generates a dialog' do
result = @builder.dialog('Greetings, one and all!').to_s
result.must_equal %(<dialog>Greetings, one and all!</dialog>)
end
end

##############################################################################
# EMPTY TAGS #
##############################################################################
Expand Down

0 comments on commit efa21bc

Please sign in to comment.