Sha256: 3d39733a6204761b1d326bb1cf2eb8dd10fdbd5e1379c331c8e99d1645ebfc05

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 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'
    )
    expect(res[:updateDate]).not_to be_nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ncmb-ruby-client-0.2.0 spec/put_spec.rb
ncmb-ruby-client-0.1.7 spec/put_spec.rb