spec/aws-record/record/table_config_spec.rb [944:988]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        end

        it 'returns false if a global secondary index is missing' do
          cfg = TableConfig.define do |t|
            t.model_class(TestModelWithGsi)
            t.read_capacity_units(2)
            t.write_capacity_units(2)
            t.global_secondary_index(:gsi) do |i|
              i.read_capacity_units(1)
              i.write_capacity_units(1)
            end
            t.client_options(stub_responses: true)
          end
          stub_client = configure_test_client(cfg.client)
          stub_client.stub_responses(
            :describe_table,
            table: {
              attribute_definitions: [
                {
                  attribute_name: 'hk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'rk',
                  attribute_type: 'S'
                }
              ],
              table_name: 'TestModel',
              key_schema: [
                {
                  attribute_name: 'hk',
                  key_type: 'HASH'
                },
                {
                  attribute_name: 'rk',
                  key_type: 'RANGE'
                }
              ],
              provisioned_throughput: {
                read_capacity_units: 2,
                write_capacity_units: 2,
                number_of_decreases_today: 0
              }
            }
          )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/aws-record/record/table_config_spec.rb [1444:1488]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        end

        it 'returns false if a global secondary index is missing' do
          cfg = TableConfig.define do |t|
            t.model_class(TestModelWithGsi)
            t.read_capacity_units(2)
            t.write_capacity_units(2)
            t.global_secondary_index(:gsi) do |i|
              i.read_capacity_units(1)
              i.write_capacity_units(1)
            end
            t.client_options(stub_responses: true)
          end
          stub_client = configure_test_client(cfg.client)
          stub_client.stub_responses(
            :describe_table,
            table: {
              attribute_definitions: [
                {
                  attribute_name: 'hk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'rk',
                  attribute_type: 'S'
                }
              ],
              table_name: 'TestModel',
              key_schema: [
                {
                  attribute_name: 'hk',
                  key_type: 'HASH'
                },
                {
                  attribute_name: 'rk',
                  key_type: 'RANGE'
                }
              ],
              provisioned_throughput: {
                read_capacity_units: 2,
                write_capacity_units: 2,
                number_of_decreases_today: 0
              }
            }
          )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



