spec-more 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  = spec-more
2
2
 
3
3
  Spec::More gives very terse aliases for spec'ing inspired by Perl's
4
- Test::More.
4
+ Test::More. Less is More as they say.
5
5
 
6
6
  == Synopsis
7
7
 
@@ -17,7 +17,6 @@ Test::More.
17
17
  xdescribe skip it
18
18
  xit skip it
19
19
 
20
-
21
20
  == Usage
22
21
 
23
22
  require 'spec/more' # depends on bacon
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -16,6 +16,7 @@ class Object
16
16
  end
17
17
 
18
18
  def matches(other)
19
+ other = Regexp.new(Regexp.escape(other)) if other.is_a?(String)
19
20
  should.match other
20
21
  end
21
22
 
@@ -49,4 +49,11 @@ describe "spec more" do
49
49
  xit 'just skip this check for now' do end.should.be.nil
50
50
  xdescribe 'just skip this context for now' do end.should.be.nil
51
51
  end
52
+
53
+ it 'can match regular expressions or strings' do
54
+ "doggy".matches /ogg/
55
+ "do(gg)[^]y".matches 'o(gg)[^]' # the string should match inside no matter what
56
+ lambda {"do(gg)[^]y".matches 'oompa loompa'}.should.raise(Bacon::Error)
57
+ lambda {"do(gg)[^]y".matches /o(gg)/}.should.raise(Bacon::Error)
58
+ end
52
59
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec-more
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 4
9
+ version: 0.0.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - John T. Prince
@@ -9,19 +14,22 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-11-19 00:00:00 -07:00
17
+ date: 2011-02-22 00:00:00 -07:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: bacon
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
23
30
  version: "0"
24
- version:
31
+ type: :runtime
32
+ version_requirements: *id001
25
33
  description:
26
34
  email: jtprince@gmail.com
27
35
  executables: []
@@ -33,7 +41,6 @@ extra_rdoc_files:
33
41
  - README.rdoc
34
42
  files:
35
43
  - .document
36
- - .gitignore
37
44
  - LICENSE
38
45
  - README.rdoc
39
46
  - Rakefile
@@ -46,26 +53,30 @@ homepage: http://github.com/jtprince/spec-more
46
53
  licenses: []
47
54
 
48
55
  post_install_message:
49
- rdoc_options:
50
- - --charset=UTF-8
56
+ rdoc_options: []
57
+
51
58
  require_paths:
52
59
  - lib
53
60
  required_ruby_version: !ruby/object:Gem::Requirement
61
+ none: false
54
62
  requirements:
55
63
  - - ">="
56
64
  - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
57
67
  version: "0"
58
- version:
59
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
60
70
  requirements:
61
71
  - - ">="
62
72
  - !ruby/object:Gem::Version
73
+ segments:
74
+ - 0
63
75
  version: "0"
64
- version:
65
76
  requirements: []
66
77
 
67
78
  rubyforge_project:
68
- rubygems_version: 1.3.5
79
+ rubygems_version: 1.3.7
69
80
  signing_key:
70
81
  specification_version: 3
71
82
  summary: very terse syntax for testing/specing ala Test::More
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- coverage
4
- rdoc
5
- pkg