Skip to content

Instantly share code, notes, and snippets.

@joebutler2
Last active September 20, 2019 15:05
Show Gist options
  • Save joebutler2/54c455633ae5fb9288fc0ec8e0a25c00 to your computer and use it in GitHub Desktop.
Save joebutler2/54c455633ae5fb9288fc0ec8e0a25c00 to your computer and use it in GitHub Desktop.
Upgrade RefineryCMS to use Rails 6
Failures:
1) with multiple locales redirects should redirect to default locale slug
Failure/Error: visit "/#{ru_page_slug_encoded}"
ActionController::RoutingError:
No route matches [GET] "/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8"
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/request_store-1.4.1/lib/request_store/middleware.rb:19:in `call'
# ./pages/spec/features/refinery/pages_spec.rb:402:in `block (3 levels) in <module:Refinery>'
2) Resources new/create when the file mime_type is acceptable the file is uploaded
Got 1 failure and 1 other error:
2.1) Failure/Error: expect(uploading_a_file).to change(Refinery::Resource, :count).by(1)
expected `Refinery::Resource.count` to have changed by 1, but was changed by 0
# ./resources/spec/features/refinery/admin/resources_spec.rb:42:in `block (4 levels) in <module:Admin>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
2.2) Failure/Error: row = @stmt.step
ActiveRecord::StatementInvalid:
SQLite3::BusyException: database is locked: DELETE FROM "refinery_image_translations";
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/resultset.rb:170:in `step'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/resultset.rb:170:in `next_hash'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/resultset.rb:105:in `next'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/resultset.rb:133:in `each'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/database.rb:202:in `to_a'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/database.rb:202:in `block in execute'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/database.rb:151:in `prepare'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/database.rb:193:in `execute'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/active_record/truncation.rb:97:in `delete_table'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/active_record/truncation.rb:105:in `block in truncate_tables'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/active_record/truncation.rb:105:in `each'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/active_record/truncation.rb:105:in `truncate_tables'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/active_record/truncation.rb:239:in `block in clean'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/active_record/truncation.rb:235:in `clean'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/base.rb:94:in `clean'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/configuration.rb:79:in `block in clean'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/configuration.rb:79:in `each'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/database_cleaner-1.7.0/lib/database_cleaner/configuration.rb:79:in `clean'
# ./core/spec/support/database_cleaner.rb:13:in `block (2 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# SQLite3::BusyException:
# database is locked
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sqlite3-1.4.1/lib/sqlite3/resultset.rb:170:in `step'
3) Page Visual Editor - Add Image When there are many images has behaviour: indexes images shows all the images
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected to find css "#existing_image_area_content ul li img" 3 times but there were no matches
Shared Example Group: "indexes images" called from ./images/spec/features/refinery/admin/images_spec.rb:67
# ./images/spec/support/shared_examples/image_indexer.rb:14:in `block (3 levels) in <top (required)>'
# ./images/spec/support/shared_examples/image_indexer.rb:13:in `block (2 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
4) Page Visual Editor - Add Image When there are many images has behaviour: uploads images when the image type is not acceptable the image is rejected
Failure/Error: raise Capybara::ElementNotFound, "Unable to find #{query.applied_description}" if result.empty?
Capybara::ElementNotFound:
Unable to find radio button "Upload" that is not disabled
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:69
# ./images/spec/support/shared_contexts/visual_editor_add_image.rb:15:in `block (2 levels) in <top (required)>'
# ./images/spec/support/shared_examples/image_uploader.rb:12:in `block (4 levels) in <top (required)>'
# ./images/spec/support/shared_examples/image_uploader.rb:11:in `block (3 levels) in <top (required)>'
# ./images/spec/support/shared_examples/image_uploader.rb:31:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
5) Page Visual Editor - Add Image When there are many images has behaviour: uploads images when the image type is acceptable the image is uploaded
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected `Refinery::Image.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:69
# ./images/spec/support/shared_examples/image_uploader.rb:24:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
6) Page Visual Editor - Add Image When there is one image has behaviour: uploads images when the image type is acceptable the image is uploaded
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected `Refinery::Image.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:60
# ./images/spec/support/shared_examples/image_uploader.rb:24:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
7) Page Visual Editor - Add Image When there are no images has behaviour: uploads images when the image type is acceptable the image is uploaded
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected `Refinery::Image.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:52
# ./images/spec/support/shared_examples/image_uploader.rb:24:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
8) the Admin Images Tab When there are no images has behaviour: uploads images when the image type is acceptable the image is uploaded
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected `Refinery::Image.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:16
# ./images/spec/support/shared_examples/image_uploader.rb:24:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
9) the Admin Images Tab When there is one image has behaviour: uploads images when the image type is acceptable the image is uploaded
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected `Refinery::Image.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:27
# ./images/spec/support/shared_examples/image_uploader.rb:24:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
10) the Admin Images Tab When there are many images has behaviour: uploads images when the image type is acceptable the image is uploaded
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
expected `Refinery::Image.count` to have changed by 1, but was changed by 0
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:39
# ./images/spec/support/shared_examples/image_uploader.rb:24:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
11) Crudify xhr_paging performs ajax paging of index
Failure/Error: page.evaluate_script("node = document.createElement('i');")
Selenium::WebDriver::Error::StaleElementReferenceError:
stale element reference: stale element not found
(Session info: headless chrome=77.0.3865.90)
# 0 chromedriver 0x0000000102924f09 chromedriver + 3694345
# 1 chromedriver 0x00000001028b1fd3 chromedriver + 3223507
# 2 chromedriver 0x000000010265158f chromedriver + 730511
# 3 chromedriver 0x0000000102654425 chromedriver + 742437
# 4 chromedriver 0x0000000102654239 chromedriver + 741945
# 5 chromedriver 0x0000000102654d77 chromedriver + 744823
# 6 chromedriver 0x00000001025ea079 chromedriver + 307321
# 7 chromedriver 0x00000001025de072 chromedriver + 258162
# 8 chromedriver 0x00000001025e9711 chromedriver + 304913
# 9 chromedriver 0x00000001025de383 chromedriver + 258947
# 10 chromedriver 0x00000001025b923d chromedriver + 107069
# 11 chromedriver 0x00000001025ba1d5 chromedriver + 111061
# 12 chromedriver 0x00000001028e007f chromedriver + 3412095
# 13 chromedriver 0x00000001028ecced chromedriver + 3464429
# 14 chromedriver 0x00000001028eca78 chromedriver + 3463800
# 15 chromedriver 0x00000001028bf959 chromedriver + 3279193
# 16 chromedriver 0x00000001028ed548 chromedriver + 3466568
# 17 chromedriver 0x00000001028d41b7 chromedriver + 3363255
# 18 chromedriver 0x000000010290b474 chromedriver + 3589236
# 19 chromedriver 0x000000010292ace7 chromedriver + 3718375
# 20 libsystem_pthread.dylib 0x00007fff76f622eb _pthread_body + 126
# 21 libsystem_pthread.dylib 0x00007fff76f65249 _pthread_start + 66
# 22 libsystem_pthread.dylib 0x00007fff76f6140d thread_start + 13
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/response.rb:34:in `initialize'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/http/common.rb:88:in `new'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/http/common.rb:88:in `create_response'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/http/default.rb:114:in `request'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/http/common.rb:64:in `call'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/bridge.rb:167:in `execute'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/w3c/bridge.rb:567:in `execute'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/remote/w3c/bridge.rb:305:in `execute_script'
# /Users/jbutler/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.142.4/lib/selenium/webdriver/common/driver.rb:213:in `execute_script'
# ./core/spec/features/refinery/admin/xhr_paging_spec.rb:25:in `block (3 levels) in <module:Refinery>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
Finished in 1 minute 12.3 seconds (files took 3.9 seconds to load)
564 examples, 11 failures, 8 pending
Failed examples:
rspec ./pages/spec/features/refinery/pages_spec.rb:401 # with multiple locales redirects should redirect to default locale slug
rspec ./resources/spec/features/refinery/admin/resources_spec.rb:41 # Resources new/create when the file mime_type is acceptable the file is uploaded
rspec ./images/spec/features/refinery/admin/images_spec.rb:67 # Page Visual Editor - Add Image When there are many images has behaviour: indexes images shows all the images
rspec ./images/spec/features/refinery/admin/images_spec.rb[2:3:3:2:1] # Page Visual Editor - Add Image When there are many images has behaviour: uploads images when the image type is not acceptable the image is rejected
rspec ./images/spec/features/refinery/admin/images_spec.rb[2:3:3:1:1] # Page Visual Editor - Add Image When there are many images has behaviour: uploads images when the image type is acceptable the image is uploaded
rspec ./images/spec/features/refinery/admin/images_spec.rb[2:2:3:1:1] # Page Visual Editor - Add Image When there is one image has behaviour: uploads images when the image type is acceptable the image is uploaded
rspec ./images/spec/features/refinery/admin/images_spec.rb[2:1:1:1:1] # Page Visual Editor - Add Image When there are no images has behaviour: uploads images when the image type is acceptable the image is uploaded
rspec ./images/spec/features/refinery/admin/images_spec.rb[1:1:2:1:1] # the Admin Images Tab When there are no images has behaviour: uploads images when the image type is acceptable the image is uploaded
rspec ./images/spec/features/refinery/admin/images_spec.rb[1:2:6:1:1] # the Admin Images Tab When there is one image has behaviour: uploads images when the image type is acceptable the image is uploaded
rspec ./images/spec/features/refinery/admin/images_spec.rb[1:3:6:1:1] # the Admin Images Tab When there are many images has behaviour: uploads images when the image type is acceptable the image is uploaded
rspec ./core/spec/features/refinery/admin/xhr_paging_spec.rb:18 # Crudify xhr_paging performs ajax paging of index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment