Created
August 9, 2018 09:43
-
-
Save odlp/beda8fed88a6cd872da5eb76e6b04df7 to your computer and use it in GitHub Desktop.
Inline Bundler and autorun RSpec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Related: One-file Rails example 🛤️