typ-rspec-matcher 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: f68ee7dc154113b06aeba5b669ca43056b1f7a9f946f8bff1cf92953f4c3fc21
4
- data.tar.gz: b2e870ba7580583f57c087bd722500ae7dfc741e6bf5967c3dba8dcdb433ddbe
3
+ metadata.gz: 7bc7a71ea9f9b81cbbcb1ad16a48e6ef4cceba2624077264e9cb5246245dc254
4
+ data.tar.gz: 5c982e6da79f11552a7ecd42eb58360d564a58ebacb34f0a0d91ad325523947d
5
5
  SHA512:
6
- metadata.gz: cba39ea11437c9da287eb913ede553e615f927a9412291ad88031d37e925c915d3926bb20cf1f82862617115d315335ec39cd58270ab51918d5aa00fa2a7841d
7
- data.tar.gz: 40a874c1ce5585196dea1ec9b5e88c6088d7af08f751a9f3598c3f0bac29ba31929eebd2489c6f6f68bf08b8cac7c31f5f1d8524233669e4521fab1bdfdc62c8
6
+ metadata.gz: 7776fb2aa0213419968851e20ac82af0e0f40900553f4ce491f530f330e86c25fbae9d2f2ade5d965191d0825159b5351be3493669645b9c4133848d8f5226ab
7
+ data.tar.gz: 64664eb1ed2a1d6875377dfd3817d0b6d700649c44e1808b6543079c9677bdb06c756d3ef506a56bcd8c19dda54f8b8ecd68be83128a61a9fa744cb4cc33ad4e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typ-rspec-matcher (0.0.1)
4
+ typ-rspec-matcher (0.0.2)
5
5
  awesome_print
6
6
  typ
7
7
  typ-formatter
@@ -17,6 +17,10 @@ module Typ
17
17
  def failure_message
18
18
  @it.ai + "\n" + Formatter.new(@typ).to_s
19
19
  end
20
+
21
+ def description
22
+ "be #{@typ_class}"
23
+ end
20
24
  end
21
25
  end
22
26
  end
@@ -20,4 +20,8 @@ describe Typ::RSpec::Matcher do
20
20
 
21
21
  expect(matcher.failure_message).to eq failure_message
22
22
  end
23
+
24
+ it '#description' do
25
+ expect(matcher.description).to eq "be Positive"
26
+ end
23
27
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'typ-rspec-matcher'
3
3
  g.files = `git ls-files`.split($/)
4
- g.version = '0.0.2'
4
+ g.version = '0.0.3'
5
5
  g.summary = 'A RSpec matcher to check objects with typs.'
6
6
  g.authors = ['Anatoly Chernow']
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typ-rspec-matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernow