rake-rspec 0.0.1 → 0.0.2
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 -0
- data/lib/rake/rspec/version.rb +1 -1
- data/rake-rspec.gemspec +3 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d68d5c74885e7792615c62c79fecef61ff8cbb8
|
4
|
+
data.tar.gz: e7983d073be873700b72130a458c2ce0fe53eca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19e99454921c1abac324a7ec953f1b6d97a50ead28cb26909dfb58979747a54d817077f29611258a28673b27afeeaaa54fd565361d5d047e54bc298188448aa0
|
7
|
+
data.tar.gz: fb3b8b2ad3408742bc38dd8942903b0eecc375f0e9378f2ab340bc848ee065f147ab0086cdfb9262ac45062355a64027c720a2e297d71a8861d09f2775acf938
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Rake::Rspec
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/rake-rspec.svg)](http://badge.fury.io/rb/rake-rspec)
|
4
|
+
|
3
5
|
Common [Rake](https://github.com/jimweirich/rake) tasks for [Rspec](https://github.com/rspec) testing.
|
4
6
|
|
5
7
|
*Quickly write a Rakefile for running a suite of Rspec tests, and ensure your suite has a proper structure.*
|
@@ -30,6 +32,14 @@ require 'rake/rspec'
|
|
30
32
|
|
31
33
|
Structure your **spec/** directory as follows:
|
32
34
|
|
35
|
+
```bash
|
36
|
+
my-project
|
37
|
+
├── spec/
|
38
|
+
├── spec_helper.rb
|
39
|
+
├── integration/
|
40
|
+
├── spec_helper.rb
|
41
|
+
```
|
42
|
+
|
33
43
|
* All *unit* tests go into **spec/**.
|
34
44
|
* All *integration* tests go into **spec/integration/**.
|
35
45
|
|
@@ -48,6 +58,30 @@ To make sure that your unit tests aren't slowed down by any of your integration
|
|
48
58
|
|
49
59
|
The integration test **spec_helper.rb** should require the unit test **spec_helper.rb**, thus inheriting the vast majority of dependencies for your application.
|
50
60
|
|
61
|
+
#### Default Task (Optional)
|
62
|
+
|
63
|
+
The gem **does not** set a default task, this has to be done in your Rakefile. For example:
|
64
|
+
|
65
|
+
```ruby
|
66
|
+
require 'rake/rspec'
|
67
|
+
|
68
|
+
task :default => :spec
|
69
|
+
```
|
70
|
+
|
71
|
+
#### Configuring Rspec (Optional)
|
72
|
+
|
73
|
+
The gem **does not** specify any options when running Rspec, this has to be implemented by adding a **.rspec** file to the root of your application. For example:
|
74
|
+
|
75
|
+
```
|
76
|
+
--color --format documentation --format=Nc
|
77
|
+
```
|
78
|
+
|
79
|
+
The options above do the following:
|
80
|
+
|
81
|
+
- Enable **color** in the output.
|
82
|
+
- Format the output in a more verbose style.
|
83
|
+
- Use the [rspec-nc](https://github.com/twe4ked/rspec-nc) gem to display the result as an OSX Notification Center alert.
|
84
|
+
|
51
85
|
## Contributing
|
52
86
|
|
53
87
|
1. [Fork it!](https://github.com/revett/rake-rspec/fork)
|
data/lib/rake/rspec/version.rb
CHANGED
data/rake-rspec.gemspec
CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_development_dependency "bundler", "~> 1.7"
|
21
|
-
|
22
|
-
spec.
|
21
|
+
|
22
|
+
spec.add_runtime_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_runtime_dependency "rspec", "~> 3.1"
|
23
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Revett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.1
|
48
|
-
type: :
|
47
|
+
version: '3.1'
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.1
|
54
|
+
version: '3.1'
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- charlierevett@gmail.com
|