Sha256: 55b40be6e730398e3a2cef699c766c26c95202c5d67d0aa180e8abb5e7bdc5e4

Contents?: true

Size: 782 Bytes

Versions: 11

Compression:

Stored size: 782 Bytes

Contents

require 'test_helper'

class Gecko::Record::UserAdapterTest < Minitest::Test
  include TestingAdapter
  include SharedAdapterExamples

  let(:adapter)       { @client.User }
  let(:plural_name)   { 'users' }
  let(:record_class)  { Gecko::Record::User }

  def test_initializes_adapter
    assert_instance_of(Gecko::Record::UserAdapter, @client.User)
  end

  # Can't build users via API
  undef :test_build
  undef :test_build_with_attributes
  undef :test_saving_new_record
  undef :test_saving_new_invalid_record
  undef :test_saving_record_with_idempotency_key

  def test_current
    VCR.use_cassette('users#current') do
      assert_instance_of(Gecko::Record::User, @client.User.current)
      assert(@client.User.current, 'User.current is identity mapped')
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 test/record/user_adapter_test.rb
gecko-ruby-0.9.0 test/record/user_adapter_test.rb
gecko-ruby-0.8.0 test/record/user_adapter_test.rb
gecko-ruby-0.2.6 test/record/user_adapter_test.rb
gecko-ruby-0.7.1 test/record/user_adapter_test.rb
gecko-ruby-0.7.0 test/record/user_adapter_test.rb
gecko-ruby-0.6.0 test/record/user_adapter_test.rb
gecko-ruby-0.5.0 test/record/user_adapter_test.rb
gecko-ruby-0.2.5 test/record/user_adapter_test.rb
gecko-ruby-0.2.4 test/record/user_adapter_test.rb
gecko-ruby-0.2.3 test/record/user_adapter_test.rb