Initialization of ExtendentDocument model shouldn't failed on a nil value in argument
Signed-off-by: Tapajós <tapajos@gmail.com>
This commit is contained in:
parent
40bef6cafb
commit
b8bda3bb02
2 changed files with 6 additions and 1 deletions
|
@ -129,6 +129,11 @@ describe "ExtendedDocument" do
|
|||
@obj.should be_new_document
|
||||
@obj.should be_new_record
|
||||
end
|
||||
|
||||
it "should not failed on a nil value in argument" do
|
||||
@obj = Basic.new(nil)
|
||||
@obj.should == { 'couchrest-type' => 'Basic' }
|
||||
end
|
||||
end
|
||||
|
||||
describe "creating a new document" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue