Skip to content

Commit d389603

Browse files
Add test for all attributes
1 parent 49f89bd commit d389603

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/usage/components/object_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def response
1414

1515
# enhanced object
1616
object id: 'my-id', class: 'my-class', width: 400, height: 400, data: 'helloworld.swf'
17+
18+
# using all attributes
19+
object id: 'my-id', class: 'my-class', width: 400, height: 400, form: '#my_form', data: 'helloworld.swf', name: 'my_object', type: 'application/vnd.adobe.flash-movie', usemap: '#my_map'
1720
}
1821
end
1922

@@ -26,6 +29,7 @@ def response
2629
expected_static_output = <<~HTML
2730
<object data="helloworld.swf" height="400" width="400"></object>
2831
<object data="helloworld.swf" height="400" id="my-id" width="400" class="my-class"></object>
32+
<object data="helloworld.swf" form="#my_form" height="400" id="my-id" name="my_object" type="application/vnd.adobe.flash-movie" usemap="#my_map" width="400" class="my-class"></object>
2933
HTML
3034

3135
expect(stripped(static_output)).to include(stripped(expected_static_output))

0 commit comments

Comments
 (0)