ex_aequo_rspex 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 54096a51f4b75569e50441df345d0fd0d91820cf2987e9cc65090c32510fdc47
4
- data.tar.gz: b9221e4c561b2ae5e210a60d0ad64cff50baabf7765fc1d80aa058fcdca4e382
3
+ metadata.gz: 1830a0eeeebf7c21a62f80d6618b67757f882609dacf27ad29397d6172316331
4
+ data.tar.gz: '074892cee1c504afbf5b9907d68ff4330fbc61b00c9b11cee30e8507a4617c38'
5
5
  SHA512:
6
- metadata.gz: 25cb1e89fb5b3262de3efc24cf55d471eb230feb80d7cd239404aca93417cce7734c3a965d0f89bff74b89a56db4968c3faad0ac4c5bed83555cb1c20ca0ef45
7
- data.tar.gz: d879538cbce5956d7e9a2c59fb09d4c88547a704f27345c29b0fea9688523b40c72fe4891bbcc56c9ec47c0bb3c9eb3ba7145ae4a88fb2f7ea0939a99a03c34f
6
+ metadata.gz: e497f05e1f0beaf50f91e269dd0b006928702d521883429fc7d5c44163f5ecfd2c7ce5539d9b0c279d05ba78739120fdb3e1fcabf9c4f071eda6969582371ff7
7
+ data.tar.gz: 7ebce217c25b7e44c3d0ba21862ec6f2ca7f79936c2446e4a0ed3308e9ccc5b619a45ad9e43bed7cf2617a38ddacd74c3e6f5dc4327590fa8d45ef376f48d764
@@ -11,6 +11,11 @@ module ExAequo
11
11
  end
12
12
  alias_method :it_equals, :it_eq
13
13
 
14
+ def it_has_ivar(name, value, &blk)
15
+ actual = blk ? instance_eval(&blk) : subject
16
+ expect(actual.instance_variable_get("@#{name}")).to eq(value)
17
+ end
18
+
14
19
  def it_is(predicate, *args, &blk)
15
20
  actual = blk ? instance_eval(&blk) : subject
16
21
  expect(actual).to send("be_#{predicate}", *args)
@@ -12,6 +12,12 @@ module ExAequo
12
12
  end
13
13
  alias_method :it_equals, :it_eq
14
14
 
15
+ def it_has_ivar(name, value, &blk)
16
+ specify do
17
+ it_has_ivar(name, value, &blk)
18
+ end
19
+ end
20
+
15
21
  def it_is(predicate, *args, &blk)
16
22
  specify do
17
23
  it_is(predicate, *args, &blk)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module ExAequo
4
4
  module RSpex
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
8
8
  # SPDX-License-Identifier: AGPL-3.0-or-later
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ex_aequo_rspex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Dober