rspec-temp_dir 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6625cdae74d3f4d81b05345b178d5e86fa8c24d0
4
- data.tar.gz: a2425f1fbf7ecbf9847d89c920f0f63f05010920
3
+ metadata.gz: d27fbdb45b2861ce8e64a2905bbea5dfd74b5bd2
4
+ data.tar.gz: 89eae1fa8bb39a30c63f77f8593df5e7b8a500eb
5
5
  SHA512:
6
- metadata.gz: ecad11e9848236df58b33b2e1fc72155a981898b1208f7b4818bc54f65386aad33c7cb407d735fb351a90b9e6bee3912f310775b4815ac7bf021541b8a7107fd
7
- data.tar.gz: ae18606dcb3a7b869ac539cf46609b78d541b015a8b499864a373dca3c838fa44971255669bd8ca8e1d0e56e11240c7bc646d15378ad8afc74c8c02e3ebbc881
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.2...master)
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)
@@ -1,8 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rspec' , "~> 3.0.0"
4
- gem 'rspec-core' , "~> 3.0.4"
5
- gem 'rspec-expectations', "~> 3.0.4"
6
- gem 'rspec-mocks' , "~> 3.0.4"
3
+ gem 'rspec', "~> 3.0"
7
4
 
8
5
  gemspec path: '../'
@@ -10,4 +10,8 @@ require "rspec"
10
10
  end
11
11
 
12
12
  attr_reader :temp_dir
13
+
14
+ def temp_dir_path
15
+ Pathname(temp_dir)
16
+ end
13
17
  end
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module TempDir
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -14,4 +14,11 @@ describe "uses temp dir" do
14
14
 
15
15
  expect(File.read(temp_file)).to eq "foo"
16
16
  end
17
+
18
+ describe "#temp_dir_path" do
19
+ subject{ temp_dir_path }
20
+
21
+ it { should be_an_instance_of Pathname }
22
+ it { should be_exist }
23
+ end
17
24
  end
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.2
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-08-20 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec