Skip to content

Instantly share code, notes, and snippets.

@tlatsas
Forked from odlp/bundler-rspec-inline.rb
Created January 22, 2021 21:00
Show Gist options
  • Save tlatsas/148fc22cc945bbf7c1188a50b2c93112 to your computer and use it in GitHub Desktop.
Save tlatsas/148fc22cc945bbf7c1188a50b2c93112 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