Sha256: 9c667d1a00d69a70a6bbf121d44fd2ee4d375251176313ebb6246316caba09a9

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 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

6 entries across 6 versions & 1 rubygems

Version Path
ncmb-ruby-client-0.1.3 spec/put_spec.rb
ncmb-ruby-client-0.1.2 spec/put_spec.rb
ncmb-ruby-client-0.1.1 spec/put_spec.rb
ncmb-ruby-client-0.1.0 spec/put_spec.rb
ncmb-ruby-client-0.0.9 spec/put_spec.rb
ncmb-ruby-client-0.0.8 spec/put_spec.rb