assert_value 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +23 -1
- data/README.md +3 -0
- data/Rakefile +1 -0
- data/assert_value.gemspec +1 -1
- data/lib/assert_value.rb +1 -1
- metadata +45 -25
- checksums.yaml +0 -7
data/.travis.yml
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# use containter-based infastructured
|
2
|
+
# intended to fix:
|
3
|
+
# NoMethodError: undefined method `spec' for nil:NilClass
|
4
|
+
# https://github.com/bundler/bundler/issues/3558
|
5
|
+
sudo: false
|
6
|
+
|
1
7
|
language: ruby
|
2
8
|
|
3
9
|
rvm:
|
@@ -5,6 +11,7 @@ rvm:
|
|
5
11
|
- 1.9.3
|
6
12
|
- 2.2.2
|
7
13
|
- 2.2.3
|
14
|
+
- 2.3.0
|
8
15
|
|
9
16
|
gemfile: Gemfile
|
10
17
|
|
@@ -48,7 +55,7 @@ matrix:
|
|
48
55
|
- rvm: 2.2.3
|
49
56
|
gemfile: gemfiles/minitest.4.7.5.gemfile
|
50
57
|
script: bundle exec rake test
|
51
|
-
- rvm: 2.2.
|
58
|
+
- rvm: 2.2.3
|
52
59
|
gemfile: gemfiles/minitest.gemfile
|
53
60
|
script: bundle exec rake test
|
54
61
|
- rvm: 2.2.3
|
@@ -57,3 +64,18 @@ matrix:
|
|
57
64
|
- rvm: 2.2.3
|
58
65
|
gemfile: gemfiles/rspec.gemfile
|
59
66
|
script: bundle exec rake spec
|
67
|
+
- rvm: 2.3.0
|
68
|
+
gemfile: gemfiles/rspec.2.99.gemfile
|
69
|
+
script: bundle exec rspec test
|
70
|
+
- rvm: 2.3.0
|
71
|
+
gemfile: gemfiles/minitest.4.7.5.gemfile
|
72
|
+
script: bundle exec rake test
|
73
|
+
- rvm: 2.3.0
|
74
|
+
gemfile: gemfiles/minitest.gemfile
|
75
|
+
script: bundle exec rake test
|
76
|
+
- rvm: 2.3.0
|
77
|
+
gemfile: gemfiles/test-unit.gemfile
|
78
|
+
script: bundle exec rake test
|
79
|
+
- rvm: 2.3.0
|
80
|
+
gemfile: gemfiles/rspec.gemfile
|
81
|
+
script: bundle exec rake spec
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# assert_value
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/assert_value.svg)](https://badge.fury.io/rb/assert_value)
|
4
|
+
[![Build Status](https://travis-ci.org/acunote/assert_value.svg?branch=master)](https://travis-ci.org/acunote/assert_value)
|
5
|
+
|
3
6
|
Checks that two values are same and "magically" replaces expected value
|
4
7
|
with the actual in case the new behavior (and new actual value) is correct.
|
5
8
|
Support two kind of arguments: string and code block.
|
data/Rakefile
CHANGED
data/assert_value.gemspec
CHANGED
data/lib/assert_value.rb
CHANGED
@@ -217,7 +217,7 @@ module AssertValueAssertion
|
|
217
217
|
else
|
218
218
|
log_file = File.expand_path(log_file, Dir.pwd)
|
219
219
|
end
|
220
|
-
expected = File.
|
220
|
+
expected = File.exist?(log_file) ? File.read(log_file) : ""
|
221
221
|
change = :update_file_with_expected_string
|
222
222
|
else
|
223
223
|
internal_error("Invalid expected class #{expected.class}")
|
metadata
CHANGED
@@ -1,23 +1,35 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: assert_value
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 5
|
9
|
+
- 3
|
10
|
+
version: 1.5.3
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Pluron, Inc.
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
17
|
+
|
18
|
+
date: 2016-01-18 00:00:00 -05:00
|
19
|
+
default_executable:
|
12
20
|
dependencies: []
|
21
|
+
|
13
22
|
description: assert_value assertion
|
14
23
|
email: support@pluron.com
|
15
24
|
executables: []
|
25
|
+
|
16
26
|
extensions: []
|
27
|
+
|
17
28
|
extra_rdoc_files: []
|
18
|
-
|
19
|
-
|
20
|
-
-
|
29
|
+
|
30
|
+
files:
|
31
|
+
- .gitignore
|
32
|
+
- .travis.yml
|
21
33
|
- Gemfile
|
22
34
|
- LICENSE
|
23
35
|
- README.md
|
@@ -38,33 +50,41 @@ files:
|
|
38
50
|
- test/assert_value_test.rb
|
39
51
|
- test/logs/assert_value_exception_with_files.log.ref
|
40
52
|
- test/logs/assert_value_with_files.log.ref
|
53
|
+
has_rdoc: true
|
41
54
|
homepage: http://github.com/acunote/assert_value
|
42
|
-
licenses:
|
55
|
+
licenses:
|
43
56
|
- MIT
|
44
|
-
metadata: {}
|
45
57
|
post_install_message:
|
46
58
|
rdoc_options: []
|
47
|
-
|
59
|
+
|
60
|
+
require_paths:
|
48
61
|
- lib
|
49
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
-
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
51
65
|
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
hash: 3
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
version: "0"
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
56
74
|
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
59
80
|
requirements: []
|
81
|
+
|
60
82
|
rubyforge_project:
|
61
|
-
rubygems_version:
|
83
|
+
rubygems_version: 1.6.2
|
62
84
|
signing_key:
|
63
|
-
specification_version:
|
64
|
-
summary: Assert that checks that two values (strings, expected and actual) are same
|
65
|
-
|
66
|
-
(and new actual value) is correct
|
67
|
-
test_files:
|
85
|
+
specification_version: 3
|
86
|
+
summary: Assert that checks that two values (strings, expected and actual) are same and which can magically replace expected value with the actual in case the new behavior (and new actual value) is correct
|
87
|
+
test_files:
|
68
88
|
- test/assert_value_spec.rb
|
69
89
|
- test/assert_value_test.rb
|
70
90
|
- test/logs/assert_value_exception_with_files.log.ref
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 3eee6b06c9913dba845a980b4b7e27066a6738df
|
4
|
-
data.tar.gz: 853f58a9123a1f1b8d6f86101628b44ac5c04076
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 99ad84701824225ba872a72bbfedc0aa9187d2f129d10518b768e2d12855f28b20f269a8a9661ba83a51236f5bf878b15862e40a858666db9a1d0f0297373b09
|
7
|
-
data.tar.gz: 0e6624eb5ecdd412351c42e497021ea183d016bfcdf2d5ba656f211b6686aabbe88a4aeefde556587fbb148f1f57b989e5e52c7ab6ca9115623940917172df8a
|