Sha256: a8b339473ff6e56509a888f7abe3c13f84030dfd917fef8f2b617f291ab2ff6f

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 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']
    )
  end
  
  it 'Post #1' do
    text = 'Test task'
    queries = {todo: text}
    todo_class = NCMB::DataStore.new 'POST_TODO'
    todo = todo_class.new(queries).save
    expect(todo.todo).to eql(text)
  end
  
  it 'Post with location #1' do
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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