Skip to content

Instantly share code, notes, and snippets.

@tisba
Created October 27, 2022 06:18
Show Gist options
  • Save tisba/0ebde7ac9e7cb69ba7258ff210e4e713 to your computer and use it in GitHub Desktop.
Save tisba/0ebde7ac9e7cb69ba7258ff210e4e713 to your computer and use it in GitHub Desktop.
Self-contained, one-file RSpec
# frozen_string_literal: true
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "rspec"
end
require "rspec/autorun"
RSpec.describe "Foo" do
it "does something" do
expect(false).to eq(false)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment