rspec-temp_dir 0.0.2 → 0.0.3
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/README.md +15 -1
- data/gemfiles/rspec3.gemfile +1 -4
- data/lib/rspec/temp_dir/uses_temp_dir.rb +4 -0
- data/lib/rspec/temp_dir/version.rb +1 -1
- data/spec/rspec/uses_temp_dir_spec.rb +7 -0
- 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: d27fbdb45b2861ce8e64a2905bbea5dfd74b5bd2
|
4
|
+
data.tar.gz: 89eae1fa8bb39a30c63f77f8593df5e7b8a500eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 020b29befa987efeae9027e94ace463e4f499be858e0d75e2adba27e99f747caf173709357b9b3509071f0fabc5efe730aad3deaf629249b90feff59b27eb766
|
7
|
+
data.tar.gz: 6b6bbd39fca2fb68443564075de964f8b2799ce4ed7836d2ead22fe075be3a2b5e80d838776bdec33d6d44bd134e5d6cf8973d8d8bb24ebf43967b784220482d
|
data/README.md
CHANGED
@@ -29,6 +29,7 @@ Or install it yourself as:
|
|
29
29
|
$ gem install rspec-temp_dir
|
30
30
|
|
31
31
|
## Usage
|
32
|
+
When use `include_context "uses temp dir"` , create automatically and can use `temp_dir`
|
32
33
|
|
33
34
|
```ruby
|
34
35
|
require 'rspec/temp_dir'
|
@@ -49,12 +50,25 @@ describe "uses temp dir" do
|
|
49
50
|
|
50
51
|
expect(File.read(temp_file)).to eq "foo"
|
51
52
|
end
|
53
|
+
|
54
|
+
describe "#temp_dir_path" do
|
55
|
+
subject{ temp_dir_path }
|
56
|
+
|
57
|
+
it { should be_an_instance_of Pathname }
|
58
|
+
it { should be_exist }
|
59
|
+
end
|
52
60
|
end
|
53
61
|
```
|
54
62
|
|
55
63
|
## Changelog
|
56
64
|
### master
|
57
|
-
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v0.0.
|
65
|
+
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v0.0.3...master)
|
66
|
+
|
67
|
+
### v0.0.3
|
68
|
+
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v0.0.2...v0.0.3)
|
69
|
+
|
70
|
+
* support `temp_dir_path`
|
71
|
+
* https://github.com/sue445/rspec-temp_dir/pull/2g
|
58
72
|
|
59
73
|
### v0.0.2
|
60
74
|
[full changelog](http://github.com/sue445/rspec-temp_dir/compare/v0.0.1...v0.0.2)
|
data/gemfiles/rspec3.gemfile
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-temp_dir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|