-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[expectations] Merge pull request rspec/rspec-expectations#1055 from …
…benoittgt/update-common-markdown-files-2018-04-17-for-master Updated common markdown files (from rspec-dev) [ci skip] --- This commit was imported from rspec/rspec-expectations@a4f2547.
- Loading branch information
Showing
6 changed files
with
79 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### Subject of the issue | ||
<!--- | ||
Describe your issue here. | ||
--> | ||
|
||
### Your environment | ||
* Ruby version: | ||
* rspec-expectations version: | ||
|
||
### Steps to reproduce | ||
<!--- | ||
Tell us how to reproduce this issue. Please provide a working demo, you can use | ||
this [templates](REPORT_TEMPLATE.md) as a base. | ||
--> | ||
|
||
### Expected behavior | ||
<!--- | ||
Tell us what should happen. | ||
--> | ||
|
||
### Actual behavior | ||
<!--- | ||
Tell us what happens instead. | ||
--> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!--- | ||
This file was generated on 2018-04-17T19:41:57+02:00 from the rspec-dev repo. | ||
DO NOT modify it by hand as your changes will get lost the next time it is generated. | ||
--> | ||
|
||
# Report template | ||
|
||
```ruby | ||
# 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](https://gist.github.com), or | ||
simply paste the content into the issue description. |