title: Could not load mysql2_adapter
body: <p>I am trying to use mysql2 to run tests. I am working on rspec. Running "rspec spec" comand on terminal, getting following error.</p>
  
  <pre><code>Coverage report generated for RSpec to /home/parthiv/projects/Groupize/SourceCode/white_label/coverage. 0.0 / 0.0 LOC (100.0%) covered.
  /home/parthiv/.rvm/gems/ruby-2.1.2@white_label/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require': Could not load 'active_record/connection_adapters/mysql2_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. (LoadError)
      from /home/parthiv/.rvm/gems/ruby-2.1.2@white_label/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
  </code></pre>
  
  <p>Ruby version - ruby 2.1.2p95</p>
  
  <p>Mysql version - 5.6.20-1+deb.sury.org~precise+1 (Ubuntu)</p>
  
  <p>Gemfile</p>
  
  <pre><code>gem 'mysql2'
  </code></pre>
  
  <p>config/database.yml</p>
  
  <pre><code>development: &amp;default
    adapter: mysql2
    database: my_database_name
    encoding: utf8
    min_messages: warning
    pool: 5
    timeout: 5000
    user_name: root
    password: root
    socket: /var/run/mysqld/mysqld.sock
  
  test:
    &lt;&lt;: *default
    database: white_label_test
  
  staging:
    &lt;&lt;: *default
    adapter: postgresql
    database: white_label_staging
  
  production:
    adapter: mysql2
    encoding: utf8
    database: &lt;%= ENV['RDS_DB_NAME'] %&gt;
    username: &lt;%= ENV['RDS_USERNAME'] %&gt;
    password: &lt;%= ENV['RDS_PASSWORD'] %&gt;
    host: &lt;%= ENV['RDS_HOSTNAME'] %&gt;
    port: &lt;%= ENV['RDS_PORT'] %&gt;
  </code></pre>
  
  <p>Appropriate you help. </p>