diff --git a/Gemfile b/Gemfile index 78b2bb5..dda7dc0 100644 --- a/Gemfile +++ b/Gemfile @@ -25,8 +25,8 @@ group :test do gem 'cuprite' gem 'webrick', require: false - # The page objects (active_admin_datetimepicker/page_objects) need it, and it needs ActiveAdmin 4. - if Gem::Version.new(activeadmin_version) >= Gem::Version.new('4.0.0.beta1') - gem 'active_admin_page_objects', github: 'activeadmin-plugins/active_admin_page_objects', ref: '8ec1677d4118559af117421fbf6576cdd5e33721', require: false + # The page objects (active_admin_datetimepicker/page_objects) need it, and it needs ActiveAdmin 4.0.0.beta23 or later. + if Gem::Version.new(activeadmin_version) >= Gem::Version.new('4.0.0.beta23') + gem 'active_admin_page_objects', github: 'activeadmin-plugins/active_admin_page_objects', tag: 'v2.0.0.beta1', require: false end end diff --git a/README.md b/README.md index 20aa632..f38f23d 100644 --- a/README.md +++ b/README.md @@ -185,10 +185,10 @@ colors, not `$aa-datetimepicker-accent-color`. ## Page objects -Page objects for tests, built on [active_admin_page_objects](https://github.com/activeadmin-plugins/active_admin_page_objects) 2.x. They are optional and need ActiveAdmin 4. 2.x is not on RubyGems yet, so add it to your test group from GitHub: +Page objects for tests, built on [active_admin_page_objects](https://github.com/activeadmin-plugins/active_admin_page_objects) 2.x. They are optional and need ActiveAdmin 4.0.0.beta23 or later. 2.x is not on RubyGems yet, so add it to your test group from GitHub: ```ruby -gem 'active_admin_page_objects', github: 'activeadmin-plugins/active_admin_page_objects', branch: 'restructure-vanilla-v4' +gem 'active_admin_page_objects', github: 'activeadmin-plugins/active_admin_page_objects', tag: 'v2.0.0.beta1' ``` Then require the file from your spec helper: