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

Commit 5a1c675

Browse files
authored
Merge pull request #351 from benoittgt/update-common-markdown-files-2018-04-17-for-master
Updated common markdown files (from rspec-dev) [ci skip]
2 parents 0314ccb + aaaaaad commit 5a1c675

File tree

6 files changed

+79
-5
lines changed

6 files changed

+79
-5
lines changed

BUILD_DETAIL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2016-09-28T20:00:39+10:00 from the rspec-dev repo.
2+
This file was generated on 2018-04-17T19:41:57+02:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2016-09-28T20:00:39+10:00 from the rspec-dev repo.
2+
This file was generated on 2018-04-17T19:41:57+02:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2016-09-28T20:00:39+10:00 from the rspec-dev repo.
2+
This file was generated on 2018-04-17T19:41:57+02:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

@@ -11,7 +11,7 @@ We welcome contributions from *everyone*. While contributing, please follow the
1111
If you'd like to help make RSpec better, here are some ways you can contribute:
1212

1313
- by running RSpec HEAD to help us catch bugs before new releases
14-
- by [reporting bugs you encounter](https://github.com/rspec/rspec-support/issues/new)
14+
- by [reporting bugs you encounter](https://github.com/rspec/rspec-support/issues/new) with [report template](#report-template)
1515
- by [suggesting new features](https://github.com/rspec/rspec-support/issues/new)
1616
- by improving RSpec's [Relish](https://relishapp.com/rspec) or [API](http://rspec.info/documentation/) documentation
1717
- by improving [RSpec's website](http://rspec.info/) ([source](https://github.com/rspec/rspec.github.io))
@@ -30,6 +30,13 @@ These issue are ones that we be believe are best suited for new contributors to
3030
get started with. They represent a meaningful contribution to the project that
3131
should not be too hard to pull off.
3232

33+
## Report template
34+
35+
Having a way to reproduce your issue will be very helpful for others to help confirm,
36+
investigate and ultimately fix your issue. You can do this by providing an executable
37+
test case. To make this process easier, we have prepared one basic
38+
[bug report templates](REPORT_TEMPLATE.md) for you to use as a starting point.
39+
3340
## Maintenance branches
3441

3542
Maintenance branches are how we manage the different supported point releases

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
This file was generated on 2016-09-28T20:00:39+10:00 from the rspec-dev repo.
2+
This file was generated on 2018-04-17T19:41:57+02:00 from the rspec-dev repo.
33
DO NOT modify it by hand as your changes will get lost the next time it is generated.
44
-->
55

ISSUE_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### Subject of the issue
2+
<!---
3+
Describe your issue here.
4+
-->
5+
6+
### Your environment
7+
* Ruby version:
8+
* rspec-support version:
9+
10+
### Steps to reproduce
11+
<!---
12+
Tell us how to reproduce this issue. Please provide a working demo, you can use
13+
this [templates](REPORT_TEMPLATE.md) as a base.
14+
-->
15+
16+
### Expected behavior
17+
<!---
18+
Tell us what should happen.
19+
-->
20+
21+
### Actual behavior
22+
<!---
23+
Tell us what happens instead.
24+
-->

REPORT_TEMPLATE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!---
2+
This file was generated on 2018-04-17T19:41:57+02:00 from the rspec-dev repo.
3+
DO NOT modify it by hand as your changes will get lost the next time it is generated.
4+
-->
5+
6+
# Report template
7+
8+
```ruby
9+
# frozen_string_literal: true
10+
11+
begin
12+
require "bundler/inline"
13+
rescue LoadError => e
14+
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
15+
raise e
16+
end
17+
18+
gemfile(true) do
19+
source "https://rubygems.org"
20+
21+
gem "rspec", "3.7.0" # Activate the gem and version you are reporting the issue against.
22+
end
23+
24+
puts "Ruby version is: #{RUBY_VERSION}"
25+
require 'rspec/autorun'
26+
27+
RSpec.describe 'additions' do
28+
it 'returns 2' do
29+
expect(1 + 1).to eq(2)
30+
end
31+
32+
it 'returns 1' do
33+
expect(3 - 1).to eq(-1)
34+
end
35+
end
36+
```
37+
38+
Simply copy the content of the appropriate template into a `.rb` file on your computer
39+
and make the necessary changes to demonstrate the issue. You can execute it by running
40+
`ruby rspec_report.rb` in your terminal.
41+
42+
You can then share your executable test case as a [gist](https://gist.github.com), or
43+
simply paste the content into the issue description.

0 commit comments

Comments
 (0)