spec/delete_spec.rb in ncmb-ruby-client-0.1.6 vs spec/delete_spec.rb in ncmb-ruby-client-0.1.7

- old
+ new

@@ -12,14 +12,13 @@ @todo = @Todo.new(text: 'Test task') @object_id = @todo.save().objectId end it 'Delete #1' do - @todo.delete.should == true + expect(@todo.delete).to eql(true) end it 'Delete again' do - @todo.delete.should == true - @todo.delete.should == false - @todo.error[:code].should == 'E404001' + expect(@todo.delete).to eql(true) + expect { @todo.delete }.to raise_error(NCMB::APIError, "No data available.") end end