Sha256: 644ae980b686b3356036df18330066ad75287af9d8ff99ea803aed0d9950369d
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
# encoding: utf-8 require "spec_helper" describe ActiveMerge do describe "::merge_all" do before(:all) { Lord.extend ActiveMerge } let!(:lords) { 3.times.map{ Lord.create! }} it "доступен" do Lord.should respond_to :merge_all end it "объединяет записи указанного запроса" do Lord.where("id < 3").merge_all Lord.all.pluck(:id).should eq [1, 3] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_merge-1.0.5 | spec/active_merge_spec.rb |