rspec-pending_for 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -15
- data/lib/rspec/pending_for.rb +2 -2
- data/lib/rspec/pending_for/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8e8a94597737748577c7b9b9bb869c5a003ee8
|
4
|
+
data.tar.gz: 0a6d0916a58c5f3cd3ec53fdfe4fd08cb15cd185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4788f8f4c4a50f0d1085ed508e672f1974a494496ee275938bacdaf1491d99b13a65993612252593a764ba0c39607aae3bfc7627579f0d618b36c467d2b43cd0
|
7
|
+
data.tar.gz: 936c7bfe6e995b94295d30c367388cb6a24175a780a56a95504f78e5781d60a70fcd0af97d1a8dd9e076d99edf7be361fc2b94c47e9d33c79d55320619cbecdd
|
data/README.md
CHANGED
@@ -4,27 +4,42 @@ Easiest to just show you:
|
|
4
4
|
|
5
5
|
```ruby
|
6
6
|
it("blah is blah") do
|
7
|
-
pending_for(engine: "
|
8
|
-
pending_for(engine: "
|
7
|
+
pending_for(engine: "rbx")
|
8
|
+
pending_for(engine: "ruby", versions: "2.1.5")
|
9
|
+
pending_for(engine: "jruby", versions: "2.2.2", reason: "due to a bug in Ruby")
|
10
|
+
pending_for(engine: "ruby", versions: "2.0.0", reason: "because I don't have the time")
|
9
11
|
expect("blah").to eq "blah"
|
10
12
|
end
|
11
13
|
```
|
12
14
|
|
13
15
|
Requires Ruby 1.9+ (any engine)
|
14
16
|
|
15
|
-
| Project | Rspec::PendingFor
|
16
|
-
|------------------------ |
|
17
|
-
| gem name | rspec-pending_for
|
18
|
-
| license | MIT
|
17
|
+
| Project | Rspec::PendingFor |
|
18
|
+
|------------------------ | ----------------- |
|
19
|
+
| gem name | rspec-pending_for |
|
20
|
+
| license | MIT |
|
21
|
+
| expert support | [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github) |
|
22
|
+
| download rank | [![Total Downloads](https://img.shields.io/gem/rt/rspec-pending_for.svg)](https://rubygems.org/gems/rspec-pending_for) |
|
19
23
|
| version | [![Gem Version](https://badge.fury.io/rb/rspec-pending_for.png)](http://badge.fury.io/rb/rspec-pending_for) |
|
20
24
|
| dependencies | [![Dependency Status](https://gemnasium.com/pboling/rspec-pending_for.png)](https://gemnasium.com/pboling/rspec-pending_for) |
|
21
25
|
| code quality | [![Code Climate](https://codeclimate.com/github/pboling/rspec-pending_for.png)](https://codeclimate.com/github/pboling/rspec-pending_for) |
|
22
26
|
| inline documenation | [![Inline docs](http://inch-ci.org/github/pboling/rspec-pending_for.png)](http://inch-ci.org/github/pboling/rspec-pending_for) |
|
23
27
|
| continuous integration | [![Build Status](https://secure.travis-ci.org/pboling/rspec-pending_for.png?branch=master)](https://travis-ci.org/pboling/rspec-pending_for) |
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
| test coverage | [![Coverage Status](https://coveralls.io/repos/pboling/rspec-pending_for/badge.png)](https://coveralls.io/r/pboling/rspec-pending_for) |
|
29
|
+
| homepage | [on Github.com][homepage] |
|
30
|
+
| documentation | [on Rdoc.info][documentation] |
|
31
|
+
| live chat | [![Join the chat at https://gitter.im/pboling/rspec-pending_for](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pboling/rspec-pending_for?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
|
32
|
+
| author | Peter Boling ([Rubyish Blog](https://railsbling.com)) |
|
33
|
+
| Spread ~♡ⓛⓞⓥⓔ♡~↝ | [on AngelList][angellist], [on Coderwall][coderwall] |
|
34
|
+
|
35
|
+
[semver]: http://semver.org/
|
36
|
+
[pvc]: http://docs.rubygems.org/read/chapter/16#page74
|
37
|
+
[railsbling]: http://www.railsbling.com
|
38
|
+
[peterboling]: http://www.peterboling.com
|
39
|
+
[angellist]: https://angel.co/peter-boling
|
40
|
+
[coderwall]: http://coderwall.com/pboling
|
41
|
+
[documentation]: http://rdoc.info/github/pboling/rspec-pending_for/frames
|
42
|
+
[homepage]: https://github.com/pboling/rspec-pending_for
|
28
43
|
|
29
44
|
## Installation
|
30
45
|
|
@@ -44,13 +59,17 @@ Or install it yourself as:
|
|
44
59
|
|
45
60
|
## Usage
|
46
61
|
|
47
|
-
The gem auto-configures itself for use in your Rspec suite. Just
|
62
|
+
The gem auto-configures itself for use in your Rspec suite. Just add this line to yous `spec_helper.rb`:
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
require 'rspec/pending_for'
|
66
|
+
```
|
48
67
|
|
49
68
|
To mark a spec pending for a specific ruby engine, and/or versions:
|
50
69
|
|
51
70
|
```ruby
|
52
71
|
it("blah is blah") do
|
53
|
-
pending_for(engine: "ruby",
|
72
|
+
pending_for(engine: "ruby", versions: "2.1.5")
|
54
73
|
expect("blah").to eq "blah"
|
55
74
|
end
|
56
75
|
```
|
@@ -59,7 +78,7 @@ To skip a spec for a specific ruby engine, and/or versions:
|
|
59
78
|
|
60
79
|
```ruby
|
61
80
|
it("blah is blah") do
|
62
|
-
skip_for(engine: "ruby",
|
81
|
+
skip_for(engine: "ruby", versions: "2.1.5")
|
63
82
|
expect("blah").to eq "blah"
|
64
83
|
end
|
65
84
|
```
|
@@ -68,7 +87,7 @@ To mark a spec pending for all versions of a given engine:
|
|
68
87
|
|
69
88
|
```ruby
|
70
89
|
it("blah is blah") do
|
71
|
-
|
90
|
+
pending_for(engine: "jruby")
|
72
91
|
expect("blah").to eq "blah"
|
73
92
|
end
|
74
93
|
```
|
@@ -77,7 +96,7 @@ To mark a spec pending for a custom reason (overriding the default message):
|
|
77
96
|
|
78
97
|
```ruby
|
79
98
|
it("blah is blah") do
|
80
|
-
|
99
|
+
pending_for(engine: "jruby", reason: "This does not work on JRuby")
|
81
100
|
expect("blah").to eq "blah"
|
82
101
|
end
|
83
102
|
```
|
data/lib/rspec/pending_for.rb
CHANGED
@@ -18,7 +18,7 @@ module Rspec
|
|
18
18
|
# How to pend specs that break due to bugs in Ruby interpreters or versions
|
19
19
|
#
|
20
20
|
# it("blah is blah") do
|
21
|
-
# pending_for(engine: "ruby",
|
21
|
+
# pending_for(engine: "ruby", versions: "2.1.5")
|
22
22
|
# expect("blah").to eq "blah"
|
23
23
|
# end
|
24
24
|
#
|
@@ -29,7 +29,7 @@ module Rspec
|
|
29
29
|
# How to pend specs that break due to bugs in Ruby interpreters or versions
|
30
30
|
#
|
31
31
|
# it("blah is blah") do
|
32
|
-
# skip_for(engine: "jruby",
|
32
|
+
# skip_for(engine: "jruby", versions: "2.2.2")
|
33
33
|
# expect("blah").to eq "blah"
|
34
34
|
# end
|
35
35
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-pending_for
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.6.8
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Mark specs pending or skipped for specific Ruby engine (e.g. MRI or JRuby)
|