Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor issues with bundler specs #15094

Open
jsvd opened this issue Jun 16, 2023 · 0 comments · May be fixed by #15095
Open

minor issues with bundler specs #15094

jsvd opened this issue Jun 16, 2023 · 0 comments · May be fixed by #15095

Comments

@jsvd
Copy link
Member

jsvd commented Jun 16, 2023

From #15066:

  • When stubbing behavior with constraints using with, I have a preference for using the fluent interface (and_return, and_raise, etc.) over the block implementation wherever possible
  • Since we expect the CLI to receive this message with these arguments, using RSpec's expect will make it easier to catch the cause of failure if/when this spec breaks.
        expect(::Bundler::CLI).to receive(:start).with(bundler_args).and_raise( ::Bundler::VersionConflict, 'conflict')

Originally posted by @yaauie in #15066 (comment)

jsvd added a commit that referenced this issue Jun 16, 2023
@jsvd jsvd linked a pull request Jun 16, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant