spec/thinking_sphinx_spec.rb in thinking-sphinx-2.0.7 vs spec/thinking_sphinx_spec.rb in thinking-sphinx-2.0.8
- old
+ new
@@ -108,19 +108,19 @@
end
end
describe "use_group_by_shortcut? method" do
before :each do
- adapter = defined?(JRUBY_VERSION) ? :JdbcAdapter : :MysqlAdapter
+ adapter = defined?(JRUBY_VERSION) ? :JdbcAdapter : :Mysql2Adapter
unless ::ActiveRecord::ConnectionAdapters.const_defined?(adapter)
pending "No MySQL"
return
end
@connection = stub('adapter',
:select_all => true,
- :class => ActiveRecord::ConnectionAdapters::MysqlAdapter,
- :config => {:adapter => defined?(JRUBY_VERSION) ? 'jdbcmysql' : 'mysql'}
+ :class => ActiveRecord::ConnectionAdapters::Mysql2Adapter,
+ :config => {:adapter => defined?(JRUBY_VERSION) ? 'jdbcmysql' : 'mysql2'}
)
::ActiveRecord::Base.stub!(
:connection => @connection
)