spec/element/method_missing_spec.rb in opal-jquery-0.0.12 vs spec/element/method_missing_spec.rb in opal-jquery-0.0.13

- old
+ new

@@ -9,11 +9,15 @@ $.fn.opal_specs_args = function() { return Array.prototype.slice.call(arguments); }; } -describe "Element#method_missing" do - it "calls jquery plugins by given name" do +class Element + expose :opal_specs_extension, :opal_specs_args +end + +describe "Element#exposes" do + it "exposes jquery plugins by given name" do Element.new.opal_specs_extension.should eq("foo_bar_baz") end it "forwards any args onto native function" do Element.new.opal_specs_args(:foo, 42, false).should eq([:foo, 42, false])