diff --git a/test/dummy/app/assets/javascripts/harmony_example.js.jsx b/test/dummy/app/assets/javascripts/harmony_example.js.jsx
index e7f68b083..ea6b1f1f2 100644
--- a/test/dummy/app/assets/javascripts/harmony_example.js.jsx
+++ b/test/dummy/app/assets/javascripts/harmony_example.js.jsx
@@ -10,8 +10,14 @@ var HarmonyComponent = React.createClass({
},
render: function(){
var greeting = HarmonyComponent.generateGreeting();
+ var { active, ...other } = { active: true, x: 1, y:2 }
return (
-
{greeting}
+
)
},
-});
\ No newline at end of file
+});
diff --git a/test/jsxtransform_test.rb b/test/jsxtransform_test.rb
index 958d52176..87343d159 100644
--- a/test/jsxtransform_test.rb
+++ b/test/jsxtransform_test.rb
@@ -59,6 +59,7 @@ class JSXTransformTest < ActionDispatch::IntegrationTest
assert_match(/generateGreeting:\s*function\(\)/, @response.body, "object literal methods")
assert_match(/React.__spread/, @response.body, "spreading props")
assert_match(/Your greeting is: '" \+ insertedGreeting \+ "'/, @response.body, "string interpolation")
+ assert_match(/active=\$__0\.active/, @response.body, "destructuring assignment")
end
test 'accepts strip_types: true option' do