Sha256: 36b53d84582983ed01de162d149f9634f9c9d60303cac4894cb5d00b24a0e78c

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

describe "arel-mysql-index-hint" do
  context "unnested hint" do
    subject do
      User.
        hint(index_users_on_email: hint_type).
        to_sql
    end

    let(:sql) do
      "SELECT `users`.* " +
      "FROM `users` " +
      "#{hint_type} INDEX (index_users_on_email)"
    end

    let(:hint_type) { :force }

    it { is_expected.to eq sql }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arel-mysql-index-hint-0.1.1 spec/arel-mysql-index-hint/unnested_hint_spec.rb