require 'sqlite3_ar_regexp' describe 'SQLite3ARRegexp::Extension' do before(:all) do ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :database => 'spec/test.sqlite3' ) class NobelPrizeWinner < ActiveRecord::Base end end it 'adds "REGEXP" support for ActiveRecord::ConnectionAdapters::SQLite3Adapter' do expect(NobelPrizeWinner.where('first_name REGEXP "al|ma"')).to have(3).records end end