Sha256: f00a2a0e6fd05381c22404421e12b010ee6e237b8d00b989a7529670186a93fc
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 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'] ) @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 expect(@items.length).to eql(10) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ncmb-ruby-client-0.2.0 | spec/get_spec.rb |
ncmb-ruby-client-0.1.7 | spec/get_spec.rb |