rspec_sequel_matchers 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +9 -0
- data/lib/rspec_sequel/validation.rb +2 -2
- data/spec/spec_helper.rb +4 -4
- data/spec/validate_exact_length_matcher_spec.rb +5 -5
- data/spec/validate_format_matcher_spec.rb +5 -5
- data/spec/validate_includes_matcher_spec.rb +5 -5
- data/spec/validate_integer_matcher_spec.rb +3 -3
- data/spec/validate_length_range_matcher_spec.rb +5 -5
- data/spec/validate_max_length_matcher_spec.rb +5 -5
- data/spec/validate_min_length_matcher_spec.rb +5 -5
- data/spec/validate_not_string_matcher_spec.rb +3 -3
- data/spec/validate_numeric_matcher_spec.rb +3 -3
- data/spec/validate_presence_matcher_spec.rb +3 -3
- data/spec/validate_unique_matcher_spec.rb +3 -3
- metadata +60 -85
- data/.document +0 -5
- data/.gitignore +0 -5
- data/Rakefile +0 -46
- data/rspec_sequel_matchers.gemspec +0 -107
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6aa526b346bfeb8c91d845abef9afcd0bd0862c4
|
4
|
+
data.tar.gz: d017977416952636de1d9def1067fb4f457730f3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7b4b845c80e17d88f571c5726c2eb3398f96acdcd3d055aaa3e0dc52b63a9bee97b4750ca7e0638a6736ff09cfeeb3c3215e13cad962e857e908e6cb538e5e1a
|
7
|
+
data.tar.gz: 10e277ca7152b0ef84a049bfc799d1697984684835e239ef5a14e7d280b84b65dcea18c505cc18c1d4a86f4ac656a0436e947c9bc1649c50e5e4d12606e57c85
|
data/README.rdoc
CHANGED
@@ -34,6 +34,15 @@ RspecSequel::Matchers has an extensive test suite and will give you as much expl
|
|
34
34
|
|
35
35
|
sudo gem install openhood-rspec_sequel_matchers
|
36
36
|
|
37
|
+
== Config
|
38
|
+
|
39
|
+
In spec_helper.rb
|
40
|
+
|
41
|
+
RSpec.configure do |config|
|
42
|
+
config.include RspecSequel::Matchers
|
43
|
+
# ... other config ...
|
44
|
+
end
|
45
|
+
|
37
46
|
== Example usage
|
38
47
|
|
39
48
|
describe Item do
|
@@ -44,7 +44,7 @@ module RspecSequel
|
|
44
44
|
called_count = 0
|
45
45
|
i = i.dup
|
46
46
|
i.class.columns # ensure colums are read again after .dup
|
47
|
-
i.
|
47
|
+
i.should_receive(validation_type).and_return{|*args|
|
48
48
|
called_options = args.last.is_a?(Hash) ? args.pop : {}
|
49
49
|
called_attributes = args_to_called_attributes(args)
|
50
50
|
called_additionnal = args.shift if additionnal_param_required?
|
@@ -74,4 +74,4 @@ module RspecSequel
|
|
74
74
|
|
75
75
|
end
|
76
76
|
|
77
|
-
end
|
77
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require "rspec"
|
2
1
|
require "rubygems"
|
2
|
+
require "rspec"
|
3
3
|
require "sequel"
|
4
4
|
require "sequel/extensions/inflector"
|
5
5
|
require "sequel/extensions/migration"
|
6
|
-
require
|
6
|
+
require "rspec_sequel_matchers"
|
7
7
|
|
8
8
|
# connect to an in-memory database
|
9
9
|
begin
|
@@ -31,7 +31,7 @@ module RspecHelpers
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
|
34
|
+
RSpec.configure do |c|
|
35
35
|
c.mock_framework = :rspec
|
36
36
|
c.color_enabled = true
|
37
37
|
c.include(RspecHelpers)
|
@@ -48,4 +48,4 @@ Rspec.configure do |c|
|
|
48
48
|
end
|
49
49
|
@defined_models = nil
|
50
50
|
end
|
51
|
-
end
|
51
|
+
end
|
@@ -17,22 +17,22 @@ describe "validate_exact_length_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_exact_length
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should require additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_exact_length :name
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
it "should refuse invalid additionnal parameters" do
|
28
28
|
lambda{
|
29
29
|
@matcher = validate_exact_length :id, :name
|
30
|
-
}.should raise_error
|
30
|
+
}.should raise_error
|
31
31
|
end
|
32
32
|
it "should accept valid additionnal parameters" do
|
33
33
|
lambda{
|
34
34
|
@matcher = validate_exact_length 4, :name
|
35
|
-
}.should_not raise_error
|
35
|
+
}.should_not raise_error
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -85,4 +85,4 @@ describe "validate_exact_length_matcher" do
|
|
85
85
|
it{ should_not validate_exact_length(4, :name, :allow_blank => true) }
|
86
86
|
end
|
87
87
|
|
88
|
-
end
|
88
|
+
end
|
@@ -17,22 +17,22 @@ describe "validate_format_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_format
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should require additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_format :name
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
it "should refuse invalid additionnal parameters" do
|
28
28
|
lambda{
|
29
29
|
@matcher = validate_format :id, :name
|
30
|
-
}.should raise_error
|
30
|
+
}.should raise_error
|
31
31
|
end
|
32
32
|
it "should accept valid additionnal parameters" do
|
33
33
|
lambda{
|
34
34
|
@matcher = validate_format /[abc]+/, :name
|
35
|
-
}.should_not raise_error
|
35
|
+
}.should_not raise_error
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -85,4 +85,4 @@ describe "validate_format_matcher" do
|
|
85
85
|
it{ should_not validate_format(/[abc]+/, :name, :allow_blank => true) }
|
86
86
|
end
|
87
87
|
|
88
|
-
end
|
88
|
+
end
|
@@ -17,22 +17,22 @@ describe "validate_includes_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_includes
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should require additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_includes :name
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
it "should refuse invalid additionnal parameters" do
|
28
28
|
lambda{
|
29
29
|
@matcher = validate_includes :id, :name
|
30
|
-
}.should raise_error
|
30
|
+
}.should raise_error
|
31
31
|
end
|
32
32
|
it "should accept valid additionnal parameters" do
|
33
33
|
lambda{
|
34
34
|
@matcher = validate_includes ["Joseph", "Jonathan"], :name
|
35
|
-
}.should_not raise_error
|
35
|
+
}.should_not raise_error
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -85,4 +85,4 @@ describe "validate_includes_matcher" do
|
|
85
85
|
it{ should_not validate_includes(["Joseph", "Jonathan"], :name, :allow_blank => true) }
|
86
86
|
end
|
87
87
|
|
88
|
-
end
|
88
|
+
end
|
@@ -17,12 +17,12 @@ describe "validate_integer_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_integer
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should refuse additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_integer :name, :id
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -74,4 +74,4 @@ describe "validate_integer_matcher" do
|
|
74
74
|
it{ should_not validate_integer(:name, :allow_blank => true) }
|
75
75
|
end
|
76
76
|
|
77
|
-
end
|
77
|
+
end
|
@@ -17,22 +17,22 @@ describe "validate_length_range_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_length_range
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should require additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_length_range :name
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
it "should refuse invalid additionnal parameters" do
|
28
28
|
lambda{
|
29
29
|
@matcher = validate_length_range :id, :name
|
30
|
-
}.should raise_error
|
30
|
+
}.should raise_error
|
31
31
|
end
|
32
32
|
it "should accept valid additionnal parameters" do
|
33
33
|
lambda{
|
34
34
|
@matcher = validate_length_range 1..10, :name
|
35
|
-
}.should_not raise_error
|
35
|
+
}.should_not raise_error
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -85,4 +85,4 @@ describe "validate_length_range_matcher" do
|
|
85
85
|
it{ should_not validate_length_range(1..10, :name, :allow_blank => true) }
|
86
86
|
end
|
87
87
|
|
88
|
-
end
|
88
|
+
end
|
@@ -17,22 +17,22 @@ describe "validate_max_length_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_max_length
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should require additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_max_length :name
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
it "should refuse invalid additionnal parameters" do
|
28
28
|
lambda{
|
29
29
|
@matcher = validate_max_length :id, :name
|
30
|
-
}.should raise_error
|
30
|
+
}.should raise_error
|
31
31
|
end
|
32
32
|
it "should accept valid additionnal parameters" do
|
33
33
|
lambda{
|
34
34
|
@matcher = validate_max_length 4, :name
|
35
|
-
}.should_not raise_error
|
35
|
+
}.should_not raise_error
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -85,4 +85,4 @@ describe "validate_max_length_matcher" do
|
|
85
85
|
it{ should_not validate_max_length(4, :name, :allow_blank => true) }
|
86
86
|
end
|
87
87
|
|
88
|
-
end
|
88
|
+
end
|
@@ -17,22 +17,22 @@ describe "validate_min_length_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_min_length
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should require additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_min_length :name
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
it "should refuse invalid additionnal parameters" do
|
28
28
|
lambda{
|
29
29
|
@matcher = validate_min_length :id, :name
|
30
|
-
}.should raise_error
|
30
|
+
}.should raise_error
|
31
31
|
end
|
32
32
|
it "should accept valid additionnal parameters" do
|
33
33
|
lambda{
|
34
34
|
@matcher = validate_min_length 4, :name
|
35
|
-
}.should_not raise_error
|
35
|
+
}.should_not raise_error
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -85,4 +85,4 @@ describe "validate_min_length_matcher" do
|
|
85
85
|
it{ should_not validate_min_length(4, :name, :allow_blank => true) }
|
86
86
|
end
|
87
87
|
|
88
|
-
end
|
88
|
+
end
|
@@ -17,12 +17,12 @@ describe "validate_not_string_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_not_string
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should refuse additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_not_string :name, :id
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -74,4 +74,4 @@ describe "validate_not_string_matcher" do
|
|
74
74
|
it{ should_not validate_not_string(:name, :allow_blank => true) }
|
75
75
|
end
|
76
76
|
|
77
|
-
end
|
77
|
+
end
|
@@ -17,12 +17,12 @@ describe "validate_numeric_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_numeric
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should refuse additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_numeric :name, :id
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -74,4 +74,4 @@ describe "validate_numeric_matcher" do
|
|
74
74
|
it{ should_not validate_numeric(:name, :allow_blank => true) }
|
75
75
|
end
|
76
76
|
|
77
|
-
end
|
77
|
+
end
|
@@ -17,12 +17,12 @@ describe "validate_presence_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_presence
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should refuse additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_presence :name, :id
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -74,4 +74,4 @@ describe "validate_presence_matcher" do
|
|
74
74
|
it{ should_not validate_presence(:name, :allow_blank => true) }
|
75
75
|
end
|
76
76
|
|
77
|
-
end
|
77
|
+
end
|
@@ -17,12 +17,12 @@ describe "validate_unique_matcher" do
|
|
17
17
|
it "should require attribute" do
|
18
18
|
lambda{
|
19
19
|
@matcher = validate_unique
|
20
|
-
}.should raise_error
|
20
|
+
}.should raise_error
|
21
21
|
end
|
22
22
|
it "should refuse additionnal parameters" do
|
23
23
|
lambda{
|
24
24
|
@matcher = validate_unique :name, :id
|
25
|
-
}.should raise_error
|
25
|
+
}.should raise_error
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -76,4 +76,4 @@ describe "validate_unique_matcher" do
|
|
76
76
|
it{ should_not validate_unique(:name, :allow_nil => true) }
|
77
77
|
end
|
78
78
|
|
79
|
-
end
|
79
|
+
end
|
metadata
CHANGED
@@ -1,67 +1,68 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_sequel_matchers
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
version: 0.2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Jonathan Tron
|
13
8
|
- Joseph Halter
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
12
|
+
date: 2010-03-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sequel
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
26
18
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 2
|
30
|
-
- 0
|
31
|
-
- 0
|
32
|
-
- a
|
33
|
-
version: 2.0.0.a
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 3.8.0
|
34
21
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: sequel
|
38
22
|
prerelease: false
|
39
|
-
|
40
|
-
requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
41
25
|
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 3
|
45
|
-
- 8
|
46
|
-
- 0
|
26
|
+
- !ruby/object:Gem::Version
|
47
27
|
version: 3.8.0
|
48
|
-
|
49
|
-
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: sqlite3-ruby
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
50
56
|
description:
|
51
57
|
email: team@openhood.com
|
52
58
|
executables: []
|
53
|
-
|
54
59
|
extensions: []
|
55
|
-
|
56
|
-
extra_rdoc_files:
|
60
|
+
extra_rdoc_files:
|
57
61
|
- LICENSE
|
58
62
|
- README.rdoc
|
59
|
-
files:
|
60
|
-
- .document
|
61
|
-
- .gitignore
|
63
|
+
files:
|
62
64
|
- LICENSE
|
63
65
|
- README.rdoc
|
64
|
-
- Rakefile
|
65
66
|
- lib/rspec_sequel/association.rb
|
66
67
|
- lib/rspec_sequel/base.rb
|
67
68
|
- lib/rspec_sequel/matchers/have_column.rb
|
@@ -81,7 +82,6 @@ files:
|
|
81
82
|
- lib/rspec_sequel/matchers/validate_unique.rb
|
82
83
|
- lib/rspec_sequel/validation.rb
|
83
84
|
- lib/rspec_sequel_matchers.rb
|
84
|
-
- rspec_sequel_matchers.gemspec
|
85
85
|
- spec/have_column_matcher_spec.rb
|
86
86
|
- spec/have_many_to_many_matcher_spec.rb
|
87
87
|
- spec/have_many_to_one_matcher_spec.rb
|
@@ -101,53 +101,28 @@ files:
|
|
101
101
|
- spec/validate_numeric_matcher_spec.rb
|
102
102
|
- spec/validate_presence_matcher_spec.rb
|
103
103
|
- spec/validate_unique_matcher_spec.rb
|
104
|
-
has_rdoc: true
|
105
104
|
homepage: http://github.com/openhood/rspec_sequel_matchers
|
106
105
|
licenses: []
|
107
|
-
|
106
|
+
metadata: {}
|
108
107
|
post_install_message:
|
109
|
-
rdoc_options:
|
110
|
-
- --charset=UTF-8
|
111
|
-
require_paths:
|
108
|
+
rdoc_options:
|
109
|
+
- "--charset=UTF-8"
|
110
|
+
require_paths:
|
112
111
|
- lib
|
113
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
115
114
|
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
122
119
|
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
|
125
|
-
- 0
|
126
|
-
version: "0"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
127
122
|
requirements: []
|
128
|
-
|
129
123
|
rubyforge_project:
|
130
|
-
rubygems_version:
|
124
|
+
rubygems_version: 2.2.2
|
131
125
|
signing_key:
|
132
|
-
specification_version:
|
126
|
+
specification_version: 4
|
133
127
|
summary: RSpec Matchers for Sequel
|
134
|
-
test_files:
|
135
|
-
- spec/have_column_matcher_spec.rb
|
136
|
-
- spec/have_many_to_many_matcher_spec.rb
|
137
|
-
- spec/have_many_to_one_matcher_spec.rb
|
138
|
-
- spec/have_one_to_many_matcher_spec.rb
|
139
|
-
- spec/migrations/001_create_items.rb
|
140
|
-
- spec/migrations/002_create_comments.rb
|
141
|
-
- spec/migrations/003_create_comments_items.rb
|
142
|
-
- spec/spec_helper.rb
|
143
|
-
- spec/validate_exact_length_matcher_spec.rb
|
144
|
-
- spec/validate_format_matcher_spec.rb
|
145
|
-
- spec/validate_includes_matcher_spec.rb
|
146
|
-
- spec/validate_integer_matcher_spec.rb
|
147
|
-
- spec/validate_length_range_matcher_spec.rb
|
148
|
-
- spec/validate_max_length_matcher_spec.rb
|
149
|
-
- spec/validate_min_length_matcher_spec.rb
|
150
|
-
- spec/validate_not_string_matcher_spec.rb
|
151
|
-
- spec/validate_numeric_matcher_spec.rb
|
152
|
-
- spec/validate_presence_matcher_spec.rb
|
153
|
-
- spec/validate_unique_matcher_spec.rb
|
128
|
+
test_files: []
|
data/.document
DELETED
data/Rakefile
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
require "rubygems"
|
2
|
-
require "rake"
|
3
|
-
|
4
|
-
begin
|
5
|
-
require "jeweler"
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.version = "0.2.0"
|
8
|
-
gem.name = "rspec_sequel_matchers"
|
9
|
-
gem.summary = %Q{RSpec Matchers for Sequel}
|
10
|
-
gem.email = "team@openhood.com"
|
11
|
-
gem.homepage = "http://github.com/openhood/rspec_sequel_matchers"
|
12
|
-
gem.authors = ["Jonathan Tron", "Joseph Halter"]
|
13
|
-
gem.add_dependency "rspec", ">= 2.0.0.a"
|
14
|
-
gem.add_dependency "sequel", ">= 3.8.0"
|
15
|
-
end
|
16
|
-
Jeweler::GemcutterTasks.new
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
19
|
-
end
|
20
|
-
|
21
|
-
require "rspec/core/rake_task"
|
22
|
-
Rspec::Core::RakeTask.new(:spec) do |spec|
|
23
|
-
spec.pattern = "spec/**/*_spec.rb"
|
24
|
-
end
|
25
|
-
|
26
|
-
Rspec::Core::RakeTask.new(:rcov) do |spec|
|
27
|
-
spec.pattern = "spec/**/*_spec.rb"
|
28
|
-
spec.rcov = true
|
29
|
-
end
|
30
|
-
|
31
|
-
task :default => :spec
|
32
|
-
|
33
|
-
require "rake/rdoctask"
|
34
|
-
Rake::RDocTask.new do |rdoc|
|
35
|
-
if File.exist?("VERSION.yml")
|
36
|
-
config = YAML.load(File.read("VERSION.yml"))
|
37
|
-
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
38
|
-
else
|
39
|
-
version = ""
|
40
|
-
end
|
41
|
-
|
42
|
-
rdoc.rdoc_dir = "rdoc"
|
43
|
-
rdoc.title = "test #{version}"
|
44
|
-
rdoc.rdoc_files.include("README*")
|
45
|
-
rdoc.rdoc_files.include("lib/**/*.rb")
|
46
|
-
end
|
@@ -1,107 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{rspec_sequel_matchers}
|
8
|
-
s.version = "0.2.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Jonathan Tron", "Joseph Halter"]
|
12
|
-
s.date = %q{2010-03-02}
|
13
|
-
s.email = %q{team@openhood.com}
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
"LICENSE",
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".document",
|
20
|
-
".gitignore",
|
21
|
-
"LICENSE",
|
22
|
-
"README.rdoc",
|
23
|
-
"Rakefile",
|
24
|
-
"lib/rspec_sequel/association.rb",
|
25
|
-
"lib/rspec_sequel/base.rb",
|
26
|
-
"lib/rspec_sequel/matchers/have_column.rb",
|
27
|
-
"lib/rspec_sequel/matchers/have_many_to_many.rb",
|
28
|
-
"lib/rspec_sequel/matchers/have_many_to_one.rb",
|
29
|
-
"lib/rspec_sequel/matchers/have_one_to_many.rb",
|
30
|
-
"lib/rspec_sequel/matchers/validate_exact_length.rb",
|
31
|
-
"lib/rspec_sequel/matchers/validate_format.rb",
|
32
|
-
"lib/rspec_sequel/matchers/validate_includes.rb",
|
33
|
-
"lib/rspec_sequel/matchers/validate_integer.rb",
|
34
|
-
"lib/rspec_sequel/matchers/validate_length_range.rb",
|
35
|
-
"lib/rspec_sequel/matchers/validate_max_length.rb",
|
36
|
-
"lib/rspec_sequel/matchers/validate_min_length.rb",
|
37
|
-
"lib/rspec_sequel/matchers/validate_not_string.rb",
|
38
|
-
"lib/rspec_sequel/matchers/validate_numeric.rb",
|
39
|
-
"lib/rspec_sequel/matchers/validate_presence.rb",
|
40
|
-
"lib/rspec_sequel/matchers/validate_unique.rb",
|
41
|
-
"lib/rspec_sequel/validation.rb",
|
42
|
-
"lib/rspec_sequel_matchers.rb",
|
43
|
-
"rspec_sequel_matchers.gemspec",
|
44
|
-
"spec/have_column_matcher_spec.rb",
|
45
|
-
"spec/have_many_to_many_matcher_spec.rb",
|
46
|
-
"spec/have_many_to_one_matcher_spec.rb",
|
47
|
-
"spec/have_one_to_many_matcher_spec.rb",
|
48
|
-
"spec/migrations/001_create_items.rb",
|
49
|
-
"spec/migrations/002_create_comments.rb",
|
50
|
-
"spec/migrations/003_create_comments_items.rb",
|
51
|
-
"spec/spec_helper.rb",
|
52
|
-
"spec/validate_exact_length_matcher_spec.rb",
|
53
|
-
"spec/validate_format_matcher_spec.rb",
|
54
|
-
"spec/validate_includes_matcher_spec.rb",
|
55
|
-
"spec/validate_integer_matcher_spec.rb",
|
56
|
-
"spec/validate_length_range_matcher_spec.rb",
|
57
|
-
"spec/validate_max_length_matcher_spec.rb",
|
58
|
-
"spec/validate_min_length_matcher_spec.rb",
|
59
|
-
"spec/validate_not_string_matcher_spec.rb",
|
60
|
-
"spec/validate_numeric_matcher_spec.rb",
|
61
|
-
"spec/validate_presence_matcher_spec.rb",
|
62
|
-
"spec/validate_unique_matcher_spec.rb"
|
63
|
-
]
|
64
|
-
s.homepage = %q{http://github.com/openhood/rspec_sequel_matchers}
|
65
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
66
|
-
s.require_paths = ["lib"]
|
67
|
-
s.rubygems_version = %q{1.3.6}
|
68
|
-
s.summary = %q{RSpec Matchers for Sequel}
|
69
|
-
s.test_files = [
|
70
|
-
"spec/have_column_matcher_spec.rb",
|
71
|
-
"spec/have_many_to_many_matcher_spec.rb",
|
72
|
-
"spec/have_many_to_one_matcher_spec.rb",
|
73
|
-
"spec/have_one_to_many_matcher_spec.rb",
|
74
|
-
"spec/migrations/001_create_items.rb",
|
75
|
-
"spec/migrations/002_create_comments.rb",
|
76
|
-
"spec/migrations/003_create_comments_items.rb",
|
77
|
-
"spec/spec_helper.rb",
|
78
|
-
"spec/validate_exact_length_matcher_spec.rb",
|
79
|
-
"spec/validate_format_matcher_spec.rb",
|
80
|
-
"spec/validate_includes_matcher_spec.rb",
|
81
|
-
"spec/validate_integer_matcher_spec.rb",
|
82
|
-
"spec/validate_length_range_matcher_spec.rb",
|
83
|
-
"spec/validate_max_length_matcher_spec.rb",
|
84
|
-
"spec/validate_min_length_matcher_spec.rb",
|
85
|
-
"spec/validate_not_string_matcher_spec.rb",
|
86
|
-
"spec/validate_numeric_matcher_spec.rb",
|
87
|
-
"spec/validate_presence_matcher_spec.rb",
|
88
|
-
"spec/validate_unique_matcher_spec.rb"
|
89
|
-
]
|
90
|
-
|
91
|
-
if s.respond_to? :specification_version then
|
92
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
93
|
-
s.specification_version = 3
|
94
|
-
|
95
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
96
|
-
s.add_runtime_dependency(%q<rspec>, [">= 2.0.0.a"])
|
97
|
-
s.add_runtime_dependency(%q<sequel>, [">= 3.8.0"])
|
98
|
-
else
|
99
|
-
s.add_dependency(%q<rspec>, [">= 2.0.0.a"])
|
100
|
-
s.add_dependency(%q<sequel>, [">= 3.8.0"])
|
101
|
-
end
|
102
|
-
else
|
103
|
-
s.add_dependency(%q<rspec>, [">= 2.0.0.a"])
|
104
|
-
s.add_dependency(%q<sequel>, [">= 3.8.0"])
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|