Skip to content

Instantly share code, notes, and snippets.

@odlp
Created August 9, 2018 09:43
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save odlp/beda8fed88a6cd872da5eb76e6b04df7 to your computer and use it in GitHub Desktop.
Save odlp/beda8fed88a6cd872da5eb76e6b04df7 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>
@odlp
Copy link
Author

odlp commented Oct 30, 2018

Related: One-file Rails example 🛤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment