Sha256: 42cdce3a40adeb68c19ba718d4243d457992b01a5672d746bc1a48533dbfd3c8
Contents?: true
Size: 542 Bytes
Versions: 5
Compression:
Stored size: 542 Bytes
Contents
# -*- coding: utf-8 -*- 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'] @todoClass = todoClass = NCMB::DataStore.new 'GET_TODO' @todoClass.delete_all 10.times do |i| @todoClass.new(text: "Task ##{i + 1}").save end end it "Get #1" do @items = @todoClass.order('-createDate').skip(0).all @items.length.should == 10 end end
Version data entries
5 entries across 5 versions & 1 rubygems