pry-test 0.6.4 → 0.6.5

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: ee45b4e2479443b0f02927db2019738c9039a30a
4
- data.tar.gz: 3b3aff8b90add576d7c7f8494b34875c0083f9c7
3
+ metadata.gz: 902de8c8742428c4e1b68d84eef9c70a8c1e9f8f
4
+ data.tar.gz: 44d6facd4f0c3dcba6ce14a8e9d753dd44bd4160
5
5
  SHA512:
6
- metadata.gz: c7a18f3006545f42f44b3a6fdf039117c932eb2009a2d54463dbd6e3477bd0c6c047a5f1ecbb87bba454480c350c20099e0aa0d1342ec65806d244add9f39aaa
7
- data.tar.gz: adf8ffbeb9630431c789ca06f9b1e483cd058b0c5015392ac0ea3826ca00620abbe3486d68080f3abd53435879c47eaa0d7cd76fdb4ab584a76c7ef0518ed285
6
+ metadata.gz: c6f23ef3de82912a30da92d2e68902fa0ddba56285e6cbc96be01282e7ac2574d9cc9d6b24cf2eb4bdfb3ab9cbc92b5092323c69340a6f60020f3afc7148c56a
7
+ data.tar.gz: 3fab1d585d844c930f1254368d4a908e9b816fb77a60e4960dab2e856029dcce18801bd7b5be222f914c442c5b7e648c6ae6e3bb447b03b74baa192e77527a8a
@@ -72,6 +72,20 @@ module PryTest
72
72
  value
73
73
  end
74
74
 
75
+ # A basic refute method to be used within tests.
76
+ #
77
+ # @param [Object] value The value to refute.
78
+ #
79
+ # @example
80
+ # class SimpleTest < PryTest::Test
81
+ # test "common sense" do
82
+ # refute 0 > 1
83
+ # end
84
+ # end
85
+ def refute(value)
86
+ assert !value
87
+ end
88
+
75
89
  # Indicates if this test has been invoked.
76
90
  # @return [Boolean]
77
91
  def invoked?
@@ -1,3 +1,3 @@
1
1
  module PryTest
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
@@ -15,5 +15,12 @@ unless ENV["PRY_TEST_DEMO"]
15
15
  assert t.asserts.empty?
16
16
  end
17
17
 
18
+ test ".assert" do
19
+ assert true
20
+ end
21
+
22
+ test ".refute" do
23
+ refute false
24
+ end
18
25
  end
19
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.4.5
178
+ rubygems_version: 2.6.12
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: A small test framework that supports debugging test failures and errors when
@@ -188,4 +188,3 @@ test_files:
188
188
  - test/test_helper.rb
189
189
  - test/test_test.rb
190
190
  - test/test_wrapper_test.rb
191
- has_rdoc: