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

Version Path
upsert-2.1.2 spec/active_record_upsert_spec.rb
upsert-2.1.1 spec/active_record_upsert_spec.rb
upsert-2.1.0 spec/active_record_upsert_spec.rb
upsert-2.0.4 spec/active_record_upsert_spec.rb
upsert-2.0.3 spec/active_record_upsert_spec.rb
upsert-2.0.2 spec/active_record_upsert_spec.rb
upsert-2.0.1 spec/active_record_upsert_spec.rb
upsert-2.0.0 spec/active_record_upsert_spec.rb
upsert-1.2.0 spec/active_record_upsert_spec.rb
upsert-1.1.7 spec/active_record_upsert_spec.rb
upsert-1.1.6 spec/active_record_upsert_spec.rb
upsert-1.1.5 spec/active_record_upsert_spec.rb
upsert-1.1.4 spec/active_record_upsert_spec.rb
upsert-1.1.3 spec/active_record_upsert_spec.rb
upsert-1.1.1 spec/active_record_upsert_spec.rb
upsert-1.1.0 spec/active_record_upsert_spec.rb
upsert-1.0.2 spec/active_record_upsert_spec.rb
upsert-0.5.0 spec/active_record_upsert_spec.rb
upsert-0.4.0 spec/active_record_upsert_spec.rb