Sha256: 26bb9b27e6e3e34534e0a9012b85119d341ed55a5e8e007e34459ee917fba3ed
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
require 'spec_helper' describe NCMB do before do yaml = YAML.load_file( File.join(File.dirname(__FILE__), '..', 'setting.yml') ) @ncmb = NCMB::Client.new( application_key: yaml['application_key'], client_key: yaml['client_key'] ) @object_id = @ncmb.post( '/2013-09-01/classes/TODO', todo: 'Test task' )[:objectId] end it 'Put #1' do res = @ncmb.put( "/2013-09-01/classes/TODO/#{@object_id}", todo: 'Test task updated' ) res[:updateDate].should_not be_nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ncmb-ruby-client-0.1.6 | spec/put_spec.rb |
ncmb-ruby-client-0.1.5 | spec/put_spec.rb |
ncmb-ruby-client-0.1.4 | spec/put_spec.rb |