Browse Source

Bump capybara from 2.18.0 to 3.21.0

Bumps [capybara](https://github.com/teamcapybara/capybara) from 2.18.0 to 3.21.0.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](https://github.com/teamcapybara/capybara/compare/2.18.0...3.21.0)
Thorsten Eckel 5 years ago
parent
commit
e27079f0a0
3 changed files with 11 additions and 9 deletions
  1. 1 1
      Gemfile
  2. 8 6
      Gemfile.lock
  3. 2 2
      spec/system/basic/richtext_spec.rb

+ 1 - 1
Gemfile

@@ -148,7 +148,7 @@ group :development, :test do
   gem 'simplecov-rcov'
 
   # UI tests w/ Selenium
-  gem 'capybara', '~> 2.13'
+  gem 'capybara'
   gem 'selenium-webdriver'
 
   # livereload on template changes (html, js, css)

+ 8 - 6
Gemfile.lock

@@ -112,13 +112,14 @@ GEM
     buftok (0.2.0)
     builder (3.2.3)
     byebug (11.0.1)
-    capybara (2.18.0)
+    capybara (3.21.0)
       addressable
       mini_mime (>= 0.1.3)
-      nokogiri (>= 1.3.3)
-      rack (>= 1.0.0)
-      rack-test (>= 0.5.4)
-      xpath (>= 2.0, < 4.0)
+      nokogiri (~> 1.8)
+      rack (>= 1.6.0)
+      rack-test (>= 0.6.3)
+      regexp_parser (~> 1.5)
+      xpath (~> 3.2)
     childprocess (1.0.1)
       rake (< 13.0)
     clavius (1.0.4)
@@ -393,6 +394,7 @@ GEM
     rb-inotify (0.10.0)
       ffi (~> 1.0)
     rchardet (1.8.0)
+    regexp_parser (1.5.1)
     rest-client (2.0.2)
       http-cookie (>= 1.0.2, < 2.0)
       mime-types (>= 1.16, < 4.0)
@@ -537,7 +539,7 @@ DEPENDENCIES
   biz
   browser
   byebug
-  capybara (~> 2.13)
+  capybara
   clearbit
   coffee-rails
   coffee-script-source

+ 2 - 2
spec/system/basic/richtext_spec.rb

@@ -33,7 +33,7 @@ RSpec.describe 'Richtext', type: :system do
         'and some other for browser'
       )
 
-      expect(element).to have_content("some test for browser \nand some other for browser")
+      expect(element).to have_content(/some test for browser\s?\nand some other for browser/)
     end
   end
 
@@ -49,7 +49,7 @@ RSpec.describe 'Richtext', type: :system do
         'and some other for browser'
       )
 
-      expect(element).to have_content("some test for browser \nand some other for browser")
+      expect(element).to have_content(/some test for browser\s?\nand some other for browser/)
     end
   end
 end