Sha256: 1d23bb8167d7cb4cbeaf2eb77b73368a128d989a6c3643aa2322b9ae4400765f
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe NCMB do before do yaml = YAML.load_file(File.join(File.dirname(__FILE__), '..', 'setting.yml')) NCMB.initialize( application_key: yaml['application_key'], client_key: yaml['client_key'] ) @Todo = NCMB::DataStore.new('TODO') @todo = @Todo.new(text: 'Test task') @object_id = @todo.save().objectId end it 'Delete #1' do expect(@todo.delete).to eql(true) end it 'Delete again' do expect(@todo.delete).to eql(true) expect { @todo.delete }.to raise_error(NCMB::APIError, "No data available.") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ncmb-ruby-client-0.2.0 | spec/delete_spec.rb |
ncmb-ruby-client-0.1.7 | spec/delete_spec.rb |