rspec_fixtures 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8f42a8219b659d746256423f6cef8343082f186
|
4
|
+
data.tar.gz: 0a67add3f6b129d72c7fcc9c942ab03dede22b7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bcad4f7d615ebfef263489f2f96d6bd884b0676ddf7ae09afd2a817838ca6d883314efe36f7e459fc4ead8fb66c3113c717782ec599126a15f51f386f27765d
|
7
|
+
data.tar.gz: 071ad0e5be360ba9f8e73db2554755f4be4bf44a0240f22f8b64db0ef57f2ad34713121879adda8eba76fdb83a9f9e50a7e4c5bd9d1726aa44652b7cd0b7d9d1
|
data/lib/rspec_fixtures.rb
CHANGED
@@ -45,9 +45,7 @@ module RSpecFixtures
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def expected!
|
48
|
-
|
49
|
-
File.write fixture_file, nil unless File.exist? fixture_file
|
50
|
-
File.read fixture_file
|
48
|
+
File.exist?(fixture_file) ? File.read(fixture_file) : ''
|
51
49
|
end
|
52
50
|
end
|
53
51
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- README.md
|
104
104
|
- lib/rspec_fixtures.rb
|
105
105
|
- lib/rspec_fixtures/approval_handler.rb
|
106
|
+
- lib/rspec_fixtures/extensions/file.rb
|
106
107
|
- lib/rspec_fixtures/matchers/base.rb
|
107
108
|
- lib/rspec_fixtures/matchers/match_fixture.rb
|
108
109
|
- lib/rspec_fixtures/matchers/output_fixture.rb
|