busser-rspec 0.7.5 → 0.7.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +15 -0
- data/lib/busser/rspec/version.rb +1 -1
- data/lib/busser/runner_plugin/rspec.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7379d7a390cd41afe74d348be6d7713537c260c7
|
4
|
+
data.tar.gz: 4458837da64c1cc71f7e691a3e3f016d5bbfa095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25810747e9a2d8f0eebe6d1fd87a4f90ae0fdaa92fc3b2cd1e51452a242daec9a3e7c6fda9cadcff98271a5cefe27881186d4762701696dc1dca93a05f12c02c
|
7
|
+
data.tar.gz: 18d03e1b6968b38506f8cd518fb69f681cceb28547d2315fbd95d0f56226fee1aadd876eb19a6bb8366fcad957b09605253785aabc93b29333fa0536b525a2cf
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -17,6 +17,21 @@ Please put test files into [COOKBOOK]/test/integration/[SUITES]/rspec/
|
|
17
17
|
`-- default
|
18
18
|
`-- rspec
|
19
19
|
`-- spec_helper.rb
|
20
|
+
`-- Gemfile
|
21
|
+
```
|
22
|
+
|
23
|
+
You can specify your own test gem dependencies with a `Gemfile` under the `rspec` path, like this: `test/integration/<suite>/rspec/Gemfile`. Don't forget to put `gem "rspec"` there!
|
24
|
+
|
25
|
+
## How do I ... ?
|
26
|
+
|
27
|
+
### Change the rspec formatter?
|
28
|
+
|
29
|
+
You may be familar with using the `rspec -f` flag to change the rspec formatter. RSpec also offers a way to set the formatter from your specs:
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
RSpec.configure do |config|
|
33
|
+
# The same as `rspec -f documentation`
|
34
|
+
config.add_formatter "documentation"
|
20
35
|
```
|
21
36
|
|
22
37
|
## Development
|
data/lib/busser/rspec/version.rb
CHANGED
@@ -36,11 +36,17 @@ class Busser::RunnerPlugin::Rspec < Busser::RunnerPlugin::Base
|
|
36
36
|
|
37
37
|
Dir.chdir(rspec_path) do
|
38
38
|
|
39
|
-
|
39
|
+
# Referred from busser-serverspec
|
40
|
+
gemfile_path = File.join(rspec_path, 'Gemfile')
|
41
|
+
if File.exists?(gemfile_path)
|
40
42
|
# Bundle install local completes quickly if the gems are already found locally
|
41
43
|
# it fails if it needs to talk to the internet. The || below is the fallback
|
42
44
|
# to the internet-enabled version. It's a speed optimization.
|
43
|
-
|
45
|
+
banner('Bundle Installing..')
|
46
|
+
ENV['PATH'] = [ENV['PATH'], Gem.bindir, RbConfig::CONFIG['bindir']].join(File::PATH_SEPARATOR)
|
47
|
+
bundle_exec = "#{File.join(RbConfig::CONFIG['bindir'], 'ruby')} " +
|
48
|
+
"#{File.join(Gem.bindir, 'bundle')} install --gemfile #{gemfile_path}"
|
49
|
+
run("#{bundle_exec} --local || #{bundle_exec}")
|
44
50
|
end
|
45
51
|
|
46
52
|
if File.exists?(setup_file)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: busser-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: busser
|