diff --git a/spec/active_json/base_spec.rb b/spec/active_json/base_spec.rb index 47c9605e..6ef5074c 100644 --- a/spec/active_json/base_spec.rb +++ b/spec/active_json/base_spec.rb @@ -46,6 +46,12 @@ class Empty < ActiveJSON::Base ; end # Empty JSON end end + describe ".create" do + it "does not fail when the loaded JSON was empty" do + Empty.create() + end + end + describe ".delete_all" do context "when called before .all" do it "causes all to not load data" do