rails / sass-rails

Ruby on Rails stylesheet engine for Sass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests failing on master

HarlemSquirrel opened this issue · comments

Following the instructions to run the tests on master I get the following.

➤  bundle exec rake test                                                                                                         1 ↵
Run options: --seed 61886

# Running:

........F

Failure:
SassRailsTest#test_sass_defines_compressor_by_default_in_test_mode [/home/kem2028/code/sass-rails/test/sass_rails_test.rb:75]:
--- expected
+++ actual
@@ -1 +1,15 @@
-"sass"
+"DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
+set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
+boolean values and must have old data converted to 1 and 0 (its native boolean
+serialization) before setting this flag to true. Conversion can be accomplished
+by setting up a rake task which runs
+
+  ExampleModel.where(\"boolean_column = 't'\").update_all(boolean_column: 1)
+  ExampleModel.where(\"boolean_column = 'f'\").update_all(boolean_column: 0)
+
+for all models and all boolean columns, after which the flag must be set to
+true by adding the following to your application.rb file:
+
+  Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
+ (called from <top (required)> at /tmp/d20170929-24691-12t2jup/config/environment.rb:5)
+sass"



bin/rails test home/kem2028/code/sass-rails/test/sass_rails_test.rb:69

............F

Failure:
SassRailsTest#test_sass_allows_compressor_override_in_test_mode [/home/kem2028/code/sass-rails/test/sass_rails_test.rb:85]:
--- expected
+++ actual
@@ -1 +1,15 @@
-"true"
+"DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
+set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
+boolean values and must have old data converted to 1 and 0 (its native boolean
+serialization) before setting this flag to true. Conversion can be accomplished
+by setting up a rake task which runs
+
+  ExampleModel.where(\"boolean_column = 't'\").update_all(boolean_column: 1)
+  ExampleModel.where(\"boolean_column = 'f'\").update_all(boolean_column: 0)
+
+for all models and all boolean columns, after which the flag must be set to
+true by adding the following to your application.rb file:
+
+  Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
+ (called from <top (required)> at /tmp/d20170929-24691-1ju7zub/config/environment.rb:5)
+true"



bin/rails test home/kem2028/code/sass-rails/test/sass_rails_test.rb:79



Finished in 29.780809s, 0.7387 runs/s, 4.1302 assertions/s.
22 runs, 123 assertions, 2 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1)
/home/kem2028/.rvm/gems/ruby-2.4.2/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
/home/kem2028/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `eval'
/home/kem2028/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test
(See full trace by running task with --trace)