bc-rspec-matchers 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/bc-rspec-matchers.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "bc-rspec-matchers"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = Bc::
|
16
|
+
gem.version = Bc::RSpec::Matchers::VERSION
|
17
17
|
|
18
18
|
gem.add_development_dependency "rake"
|
19
19
|
gem.add_development_dependency "ruby-debug"
|
@@ -8,12 +8,14 @@ module Bc
|
|
8
8
|
@pattern = pattern
|
9
9
|
end
|
10
10
|
|
11
|
-
def matches?(actual)
|
11
|
+
def matches?(actual) # uses failure_message_for_should
|
12
12
|
@actual = actual
|
13
13
|
|
14
14
|
is_match(@actual, @pattern)
|
15
15
|
end
|
16
16
|
|
17
|
+
# does_not_maches?(actual) # uses failure_message_for_should_not
|
18
|
+
|
17
19
|
def description
|
18
20
|
"match to #{@pattern.inspect}"
|
19
21
|
end
|
data/lib/bc-rspec-matchers.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bc-rspec-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Byclosure
|