rubyunit 0.4.24 → 0.4.25

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3803155b1bf2e7d8d4625e2b4fe954e1d731b512
4
- data.tar.gz: dc4a21f703bd88fd83287ca9a49542ab9a9974c3
3
+ metadata.gz: 346a2fc06cfc13deaa5c4ae436273293308a76d1
4
+ data.tar.gz: 5e69d633817bb48aa001a6b697e11db2c8d1b5db
5
5
  SHA512:
6
- metadata.gz: cf28bd7bcf9ba89c492ffe5b5c6859750be325591046e68033891073967e6c483a5c228c2b4e67d1bb82c0abca161ad561f49a19f63a52f1102bb22e0f4b71fe
7
- data.tar.gz: 03e28da972fc0c61816a78fe1dd49d96deefcf5251f6f5d44d450aacf0d41494846330b38cb263c25fbee644ae47156ecda1f142e9f383fe662060c525894fda
6
+ metadata.gz: 441fc9e2c6c266aa91ec665160dbb3cc42f44e0a4e2669b1d7d247f7434866d5d045698546878382d4898c408bf7719e066c40e911d4eb2eee25d2c8022f67bb
7
+ data.tar.gz: 93adf02d6051b9b6c1f589af78352970aa3a0b4182b8a09038288e29cab7176eb3436e8821fddd59103e136d9cfb0b0198eda2f4381f2c69a51488432c234259
@@ -13,7 +13,7 @@ module RubyUnit
13
13
 
14
14
  ##
15
15
  # Current RubyUnit version
16
- VERSION = '0.4.24'
16
+ VERSION = '0.4.25'
17
17
 
18
18
  ##
19
19
  # Set debug mode
@@ -67,5 +67,14 @@ module RubyUnit
67
67
  ASSERT_NOT_INSTANCE_METHOD_ERROR = 'Object does NOT define instance method'
68
68
  ASSERT_CLASS_METHOD_ERROR = 'Object defines class method'
69
69
  ASSERT_NOT_CLASS_METHOD_ERROR = 'Object does NOT define instance method'
70
+
71
+ ##
72
+ # Variable assertions
73
+ ASSERT_INSTANCE_VARIABLE_DEFINED_ERROR = 'Instance variable IS defined'
74
+ ASSERT_INSTANCE_VARIABLE_NOT_DEFINED_ERROR = 'Instance variable IS NOT defined'
75
+ ASSERT_INSTANCE_VARIABLE_EQUAL_ERROR = 'Instance variable IS equal'
76
+ ASSERT_INSTANCE_VARIABLE_NOT_EQUAL_ERROR = 'Instance variable IS NOT equal'
77
+ ASSERT_INSTANCE_VARIABLE_KIND_OF_ERROR = 'Instance variable IS kind_of?'
78
+ ASSERT_INSTANCE_VARIABLE_NOT_KIND_OF_ERROR = 'Instance variable IS NOT kind_of?'
70
79
  end
71
80
  end
@@ -19,13 +19,13 @@ module RubyUnit
19
19
  end
20
20
 
21
21
  def assertInstanceVariableEqual expected, object, variable, message = nil
22
- __assert_block ASSERT_INSTANCE_VARIABLE_VALUE_ERROR, message, {:expected=>expected, :object=>object, :variable=>variable} do
22
+ __assert_block ASSERT_INSTANCE_VARIABLE_EQUAL_ERROR, message, {:expected=>expected, :object=>object, :variable=>variable} do
23
23
  expected == __instance_variable(object, variable)
24
24
  end
25
25
  end
26
26
 
27
27
  def assertInstanceVariableNotEqual expected, object, variable, message = nil
28
- __assert_block ASSERT_INSTANCE_VARIABLE_NOT_VALUE_ERROR, message, {:expected=>expected, :object=>object, :variable=>variable} do
28
+ __assert_block ASSERT_INSTANCE_VARIABLE_NOT_EQUAL_ERROR, message, {:expected=>expected, :object=>object, :variable=>variable} do
29
29
  expected != __instance_variable(object, variable)
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyunit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.24
4
+ version: 0.4.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Clower