rake-rspec 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 346065b2dbe575601c1789c611e41cf5a4344c26
4
+ data.tar.gz: 3d234b95b086d836ed39c467f070f233f762af8c
5
+ SHA512:
6
+ metadata.gz: 3b85a95510556afd1cb664eebf3cd956150075a4fccfe3794a04f65e153bbc891b76a2bede8d1378fe6c1d3e2d5287455ee5b5a50fd51656377e4d7fb6e50dc9
7
+ data.tar.gz: 8e8717217f4f901a5e72dd07f6d89091de14826397da318a1200eab8aa1667cd08a06d4805dc315516996c1cd96edc35a16c3cd81910ee3c610846f9454f46b2
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
15
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Charlie Revett
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,59 @@
1
+ # Rake::Rspec
2
+
3
+ Common [Rake](https://github.com/jimweirich/rake) tasks for [Rspec](https://github.com/rspec) testing.
4
+
5
+ *Quickly write a Rakefile for running a suite of Rspec tests, and ensure your suite has a proper structure.*
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's **Gemfile**:
10
+
11
+ ```ruby
12
+ gem 'rake-rspec'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rake-rspec
22
+
23
+ ## Usage
24
+
25
+ Require the gem in your **Rakefile**:
26
+
27
+ ```ruby
28
+ require 'rake/rspec'
29
+ ```
30
+
31
+ Structure your **spec/** directory as follows:
32
+
33
+ * All *unit* tests go into **spec/**.
34
+ * All *integration* tests go into **spec/integration/**.
35
+
36
+ You then have access to three commands:
37
+
38
+ 1. `rake spec` - runs all **unit** tests.
39
+ 2. `rake integration` - runs all **integrations** tests.
40
+ 3. `rake all` - runs **all** tests.
41
+
42
+ #### Spec Helper (Optional)
43
+
44
+ To make sure that your unit tests aren't slowed down by any of your integration test dependencies, I suggest having two **spec_helper.rb** files - one for each type of test. Located as follows:
45
+
46
+ * *Unit* tests require **spec/spec_helper.rb**.
47
+ * *Integration* tests require **spec/integration/spec_helper.rb**.
48
+
49
+ 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
+
51
+ ## Contributing
52
+
53
+ 1. [Fork it!](https://github.com/revett/rake-rspec/fork)
54
+ 2. Create your feature branch: `git checkout -b my-new-feature`
55
+ 3. Commit your changes: `git commit -am 'Add some feature'`
56
+ 4. Push to the branch: `git push origin my-new-feature`
57
+ 5. Create a new [Pull Request](https://github.com/revett/rake-rspec/pulls).
58
+
59
+ Please create an [issue](https://github.com/revett/rake-rspec/issues?q=is%3Aopen+is%3Aissue) if you find a bug or think of an enhancement that could be made.
@@ -0,0 +1,7 @@
1
+ require 'rake/rspec/version'
2
+ require 'rake/rspec/tasks'
3
+
4
+ module Rake
5
+ module Rspec
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ module Rake
4
+ module Rspec
5
+ module Tasks
6
+ RSpec::Core::RakeTask.new(:spec) do |task|
7
+ task.exclude_pattern = 'spec/integration/**/*_spec.rb'
8
+ end
9
+
10
+ RSpec::Core::RakeTask.new(:integration) do |task|
11
+ task.pattern = 'spec/integration/**/*_spec.rb'
12
+ end
13
+
14
+ RSpec::Core::RakeTask.new(:all)
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ module Rake
2
+ module Rspec
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rake/rspec/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rake-rspec"
8
+ spec.version = Rake::Rspec::VERSION
9
+ spec.authors = ["Charlie Revett"]
10
+ spec.email = ["charlierevett@gmail.com"]
11
+ spec.summary = %q{Common Rake tasks for Rspec testing.}
12
+ spec.homepage = ""
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.7"
21
+ spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_development_dependency "rspec", "~> 3.1.0"
23
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rake-rspec
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Charlie Revett
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 3.1.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 3.1.0
55
+ description:
56
+ email:
57
+ - charlierevett@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - lib/rake/rspec.rb
67
+ - lib/rake/rspec/tasks.rb
68
+ - lib/rake/rspec/version.rb
69
+ - rake-rspec.gemspec
70
+ homepage: ''
71
+ licenses:
72
+ - MIT
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 2.0.14
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: Common Rake tasks for Rspec testing.
94
+ test_files: []