Skip to content

Instantly share code, notes, and snippets.

@olly
Forked from odlp/bundler-rspec-inline.rb
Created October 23, 2023 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olly/053190ce1505a72a77970818cbe7e766 to your computer and use it in GitHub Desktop.
Save olly/053190ce1505a72a77970818cbe7e766 to your computer and use it in GitHub Desktop.
Inline Bundler and autorun RSpec
require "bundler/inline"
gemfile do
gem "rspec"
end
require "rspec/autorun"
RSpec.describe "inline Bundler and autorun RSpec" do
it "is convenient for self-contained examples & bug repros" do
expect(true).to be true
end
end
# can be run directly:
# ruby <file.rb>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment