Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Bundler 2 is already installed, still getting "You must use Bundler 2 or greater with this lockfile" error #6937

@stuartweir

Description

@stuartweir

After installing Bundler following the steps from this page, I cannot seem to run a test in rails.

The Gemfile.lock states at the bottom:

BUNDLED WITH
   2.0.1

Bundler Version:

$ bundler -v
Bundler version 2.0.1

Rails Test failing even though Bundler 2 is installed

$ bundle exec bin/rails test test/lib/my_rails_test_test.rb
You must use Bundler 2 or greater with this lockfile.

I have tried uninstalling and reinstalling Bundler:

$ gem uninstall bundler && gem install bundler
Successfully uninstalled bundler-2.0.1
Fetching bundler-2.0.1.gem
Successfully installed bundler-2.0.1
Parsing documentation for bundler-2.0.1
Installing ri documentation for bundler-2.0.1
Done installing documentation for bundler after 5 seconds
1 gem installed

Ruby version:

$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]

I'm really not sure what seems to be the issue here, or why it's failing. Any help appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions