diff --git a/Gemfile b/Gemfile index 2927f79d3..117c84af7 100644 --- a/Gemfile +++ b/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) diff --git a/Gemfile.lock b/Gemfile.lock index 6de36b78a..db2f1514a 100644 --- a/Gemfile.lock +++ b/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 diff --git a/spec/system/basic/richtext_spec.rb b/spec/system/basic/richtext_spec.rb index 1a5e9455e..b9d5bd2e6 100644 --- a/spec/system/basic/richtext_spec.rb +++ b/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