Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (33 loc) · 1.08 KB

REPORT_TEMPLATE.md

File metadata and controls

43 lines (33 loc) · 1.08 KB

Report template

# frozen_string_literal: true

begin
  require "bundler/inline"
rescue LoadError => e
  $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
  raise e
end

gemfile(true) do
  source "https://rubygems.org"

  gem "rspec", "3.7.0" # Activate the gem and version you are reporting the issue against.
end

puts "Ruby version is: #{RUBY_VERSION}"
require 'rspec/autorun'

RSpec.describe 'additions' do
  it 'returns 2' do
    expect(1 + 1).to eq(2)
  end

  it 'returns 1' do
    expect(3 - 1).to eq(-1)
  end
end

Simply copy the content of the appropriate template into a .rb file on your computer and make the necessary changes to demonstrate the issue. You can execute it by running ruby rspec_report.rb in your terminal.

You can then share your executable test case as a gist, or simply paste the content into the issue description.