Sha256: fcbcb5eea5b95e690b9e8bb6c8d22b07a178fc38d681eb043a84ce0dde5453c4
Contents?: true
Size: 407 Bytes
Versions: 19
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' require 'upsert/active_record_upsert' describe Upsert do describe 'the optional active_record extension' do describe :upsert do it "is easy to use" do assert_creates(Pet,[{:name => 'Jerry', :good => true}]) do Pet.upsert({:name => 'Jerry'}, :good => false) Pet.upsert({:name => 'Jerry'}, :good => true) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems