spec/element/method_missing_spec.rb in opal-jquery-0.1.0 vs spec/element/method_missing_spec.rb in opal-jquery-0.1.1
- old
+ new
@@ -23,10 +23,10 @@
it "forwards any args onto native function" do
Element.new.opal_specs_args(:foo, 42, false).should eq([:foo, 42, false])
end
it "only forwards calls when a native method exists" do
- lambda {
+ expect {
Element.new.some_unknown_plugin
- }.should raise_error(NoMethodError)
+ }.to raise_error(Exception)
end
end