diff --git a/test/rails/app/views/slim/attributes.html.slim b/test/rails/app/views/slim/attributes.html.slim new file mode 100644 index 00000000..1298449a --- /dev/null +++ b/test/rails/app/views/slim/attributes.html.slim @@ -0,0 +1,3 @@ +/ Exercises Temple `:capture` handling (used here for preparing HTML attributes) with the +/ Rails-specific Temple generators +.static class="#{['a', 'b'].join('-')}" diff --git a/test/rails/test/test_slim.rb b/test/rails/test/test_slim.rb index 62a5c075..08e2519f 100644 --- a/test/rails/test/test_slim.rb +++ b/test/rails/test/test_slim.rb @@ -77,6 +77,11 @@ class TestSlim < ActionDispatch::IntegrationTest assert_xpath '//input[@id="entry_name" and @name="entry[name]" and @type="text"]' end + test "attributes" do + get "/slim/attributes" + assert_html "
" + end + test "splat" do get "/slim/splat" assert_html "
Hello
"