Failures:
1) Daru::IO Daru::DataFrame.from_sql with a database connection of ActiveRecord loads data from an SQL database
Failure/Error: Daru::RSpec::Account.establish_connection "sqlite3:#{db_name}"
Gem::LoadError:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/io_spec.rb:163:in `block (5 levels) in <top (required)>'
# ./spec/io/io_spec.rb:168:in `block (5 levels) in <top (required)>'
# ./spec/io/io_spec.rb:172:in `block (5 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
2) Daru::IO Daru::DataFrame.from_activerecord with ActiveRecord::Relation without specifying field names loads data from an AR::Relation object
Failure/Error: Daru::RSpec::Account.establish_connection "sqlite3:#{db_name}"
Gem::LoadError:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/io_spec.rb:207:in `block (5 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
3) Daru::IO Daru::DataFrame.from_activerecord with ActiveRecord::Relation with specifying field names in parameters loads data from an AR::Relation object
Failure/Error: Daru::RSpec::Account.establish_connection "sqlite3:#{db_name}"
Gem::LoadError:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/io_spec.rb:207:in `block (5 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
4) Daru::IO::SqlDataSource.make_dataframe with ActiveRecord::Connection
Failure/Error: ActiveRecord::Base.establish_connection("sqlite3:#{db_name}")
Gem::LoadError:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/sql_data_source_spec.rb:14:in `block (2 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:29:in `block (4 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
5) Daru::IO::SqlDataSource.make_dataframe with ActiveRecord::Connection
Failure/Error: ActiveRecord::Base.establish_connection("sqlite3:#{db_name}")
Gem::LoadError:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/sql_data_source_spec.rb:14:in `block (2 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:30:in `block (4 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
6) Daru::IO::SqlDataSource.make_dataframe with ActiveRecord::Connection nrows
Failure/Error: ActiveRecord::Base.establish_connection("sqlite3:#{db_name}")
Gem::LoadError:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/sql_data_source_spec.rb:14:in `block (2 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:31:in `block (4 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Gem::LoadError:
# can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
7) Daru::IO::SqlDataSource.make_dataframe with an object not a string as a query should raise ArgumentError
Failure/Error: it { expect { df }.to raise_error(ArgumentError) }
expected ArgumentError, got #<Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).> with backtrace:
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
# /home/travis/.rvm/gems/ruby-2.1.10/gems/activerecord-4.2.11/lib/active_record/connection_handling.rb:50:in `establish_connection'
# ./spec/io/sql_data_source_spec.rb:14:in `block (2 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:19:in `block (3 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:43:in `block (5 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:43:in `block (4 levels) in <top (required)>'
# ./spec/io/sql_data_source_spec.rb:43:in `block (4 levels) in <top (required)>'
Finished in 7.05 seconds (files took 1.86 seconds to load)
2929 examples, 7 failures, 19 pending
Failed examples:
rspec ./spec/io/io_spec.rb:171 # Daru::IO Daru::DataFrame.from_sql with a database connection of ActiveRecord loads data from an SQL database
rspec ./spec/io/io_spec.rb:219 # Daru::IO Daru::DataFrame.from_activerecord with ActiveRecord::Relation without specifying field names loads data from an AR::Relation object
rspec ./spec/io/io_spec.rb:235 # Daru::IO Daru::DataFrame.from_activerecord with ActiveRecord::Relation with specifying field names in parameters loads data from an AR::Relation object
rspec ./spec/io/sql_data_source_spec.rb:29 # Daru::IO::SqlDataSource.make_dataframe with ActiveRecord::Connection
rspec ./spec/io/sql_data_source_spec.rb:30 # Daru::IO::SqlDataSource.make_dataframe with ActiveRecord::Connection
rspec ./spec/io/sql_data_source_spec.rb:31 # Daru::IO::SqlDataSource.make_dataframe with ActiveRecord::Connection nrows
rspec ./spec/io/sql_data_source_spec.rb:43 # Daru::IO::SqlDataSource.make_dataframe with an object not a string as a query should raise ArgumentError
Check this build job : https://travis-ci.org/SciRuby/daru/jobs/498598524#L2012