warp 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +17 -23
- data/Appraisals +16 -64
- data/Gemfile +2 -2
- data/Guardfile +2 -2
- data/README.md +1 -1
- data/gemfiles/rails_3.2_rspec_2.99.gemfile +25 -0
- data/gemfiles/rails_3.2_rspec_3.0.gemfile +26 -0
- data/gemfiles/rails_3.2_rspec_3.1.gemfile +26 -0
- data/gemfiles/rails_4.0_rspec_2.99.gemfile +25 -0
- data/gemfiles/rails_4.0_rspec_3.0.gemfile +26 -0
- data/gemfiles/rails_4.0_rspec_3.1.gemfile +26 -0
- data/gemfiles/rails_4.1_rspec_2.99.gemfile +26 -0
- data/gemfiles/rails_4.1_rspec_3.0.gemfile +27 -0
- data/gemfiles/rails_4.1_rspec_3.1.gemfile +27 -0
- data/lib/warp/model_matchers/validation_matcher.rb +9 -7
- data/lib/warp/version.rb +1 -1
- data/spec/warp/model_helpers/validation_matcher_spec.rb +18 -6
- metadata +12 -15
- data/gemfiles/rails_3.2_rspec_2.14.gemfile +0 -25
- data/gemfiles/rails_3.2_rspec_2.99.0.beta1.gemfile +0 -25
- data/gemfiles/rails_3.2_rspec_3.0.0.beta1.gemfile +0 -26
- data/gemfiles/rails_3.2_rspec_master.gemfile +0 -26
- data/gemfiles/rails_4.0_rspec_2.14.gemfile +0 -25
- data/gemfiles/rails_4.0_rspec_2.99.0.beta1.gemfile +0 -25
- data/gemfiles/rails_4.0_rspec_3.0.0.beta1.gemfile +0 -26
- data/gemfiles/rails_4.0_rspec_master.gemfile +0 -26
- data/gemfiles/rails_4.1.0.beta1_rspec_2.14.gemfile +0 -26
- data/gemfiles/rails_4.1.0.beta1_rspec_2.99.0.beta1.gemfile +0 -26
- data/gemfiles/rails_4.1.0.beta1_rspec_3.0.0.beta1.gemfile +0 -27
- data/gemfiles/rails_4.1.0.beta1_rspec_master.gemfile +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3802d2e3407dbe2e1300d19a088f37e6e75daf4e
|
4
|
+
data.tar.gz: 61fb555af4d35a71080e702e89d06f1009fb4eb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe382fe5bc4ea7fb08c7802ad0b78b58e08f64f3e48d33ad81b8a12d59f0561f30b7ab8b860a53c2d57dd57f134b80a29ecac9d780a76f5291ae072c52f9a9a6
|
7
|
+
data.tar.gz: 7bcadbe052228fe6b7ddcf9d767251170aa61c9f92003a85296c9201f0c8b55c80a4cb8fce830ae94efe3d54f9b9cfda8f2235ae34a93a90e8f15087f43a831c
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.1.
|
1
|
+
ruby-2.1.2
|
data/.travis.yml
CHANGED
@@ -8,40 +8,34 @@ rvm:
|
|
8
8
|
- 1.9.2
|
9
9
|
- 1.9.3
|
10
10
|
- 2.0.0
|
11
|
-
- 2.1.
|
11
|
+
- 2.1.2
|
12
12
|
|
13
13
|
gemfile:
|
14
|
-
- gemfiles/rails_3.2_rspec_2.
|
15
|
-
- gemfiles/rails_3.
|
16
|
-
- gemfiles/rails_3.2_rspec_3.
|
17
|
-
- gemfiles/
|
18
|
-
- gemfiles/rails_4.
|
19
|
-
- gemfiles/rails_4.
|
20
|
-
- gemfiles/rails_4.
|
21
|
-
- gemfiles/rails_4.
|
22
|
-
- gemfiles/rails_4.1.
|
23
|
-
|
24
|
-
- gemfiles/rails_4.1.0.beta1_rspec_3.0.0.beta1.gemfile
|
25
|
-
- gemfiles/rails_4.1.0.beta1_rspec_master.gemfile
|
14
|
+
- gemfiles/rails_3.2_rspec_2.99.gemfile
|
15
|
+
- gemfiles/rails_3.2_rspec_3.0.gemfile
|
16
|
+
- gemfiles/rails_3.2_rspec_3.1.gemfile
|
17
|
+
- gemfiles/rails_4.0_rspec_2.99.gemfile
|
18
|
+
- gemfiles/rails_4.0_rspec_3.0.gemfile
|
19
|
+
- gemfiles/rails_4.0_rspec_3.1.gemfile
|
20
|
+
- gemfiles/rails_4.1_rspec_2.99.gemfile
|
21
|
+
- gemfiles/rails_4.1_rspec_3.0.gemfile
|
22
|
+
- gemfiles/rails_4.1_rspec_3.1.gemfile
|
23
|
+
|
26
24
|
|
27
25
|
matrix:
|
28
26
|
exclude:
|
29
27
|
- rvm: 1.9.2
|
30
|
-
gemfile: gemfiles/rails_4.0_rspec_2.
|
31
|
-
- rvm: 1.9.2
|
32
|
-
gemfile: gemfiles/rails_4.0_rspec_2.99.0.beta1.gemfile
|
33
|
-
- rvm: 1.9.2
|
34
|
-
gemfile: gemfiles/rails_4.0_rspec_3.0.0.beta1.gemfile
|
28
|
+
gemfile: gemfiles/rails_4.0_rspec_2.99.gemfile
|
35
29
|
- rvm: 1.9.2
|
36
|
-
gemfile: gemfiles/rails_4.
|
30
|
+
gemfile: gemfiles/rails_4.0_rspec_3.0.gemfile
|
37
31
|
- rvm: 1.9.2
|
38
|
-
gemfile: gemfiles/rails_4.1.
|
32
|
+
gemfile: gemfiles/rails_4.0_rspec_3.1.gemfile
|
39
33
|
- rvm: 1.9.2
|
40
|
-
gemfile: gemfiles/rails_4.
|
34
|
+
gemfile: gemfiles/rails_4.1_rspec_2.99.gemfile
|
41
35
|
- rvm: 1.9.2
|
42
|
-
gemfile: gemfiles/rails_4.
|
36
|
+
gemfile: gemfiles/rails_4.1_rspec_3.0.gemfile
|
43
37
|
- rvm: 1.9.2
|
44
|
-
gemfile: gemfiles/rails_4.1.
|
38
|
+
gemfile: gemfiles/rails_4.1_rspec_3.1.gemfile
|
45
39
|
|
46
40
|
bundler_args: --without tools
|
47
41
|
|
data/Appraisals
CHANGED
@@ -1,67 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
raise Exception, "cannot generate gem version for #{human_version}"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def human_version
|
22
|
-
@version_parts.join(".")
|
23
|
-
end
|
24
|
-
|
25
|
-
def git?
|
26
|
-
@version_parts.size == 1
|
27
|
-
end
|
28
|
-
|
29
|
-
def branch
|
30
|
-
@version_parts[0]
|
31
|
-
end
|
32
|
-
|
33
|
-
def major
|
34
|
-
@version_parts[0]
|
35
|
-
end
|
36
|
-
|
37
|
-
def minor
|
38
|
-
git? ? nil : @version_parts[1]
|
39
|
-
end
|
40
|
-
|
41
|
-
def mm
|
42
|
-
[major, minor].join(".")
|
43
|
-
end
|
44
|
-
|
45
|
-
def mm?(version)
|
46
|
-
mm == version
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
[V["3.2"], V["4.0"], V["4.1.0.beta1"]].each do |rails|
|
51
|
-
[V["2.14"], V["2.99.0.beta1"], V["3.0.0.beta1"], V["master"]].each do |rspec|
|
52
|
-
appraise "rails-#{rails.human_version}-rspec-#{rspec.human_version}" do
|
53
|
-
gem "activesupport", rails.gem_version, require: "active_support/all"
|
54
|
-
gem "actionpack", rails.gem_version, require: "action_controller"
|
55
|
-
gem "activerecord", rails.gem_version, require: "active_record"
|
56
|
-
gem "actionview", rails.gem_version, require: "action_view" if rails.mm?("4.1")
|
57
|
-
|
58
|
-
["rspec", "rspec-core", "rspec-expectations", "rspec-mocks", "rspec-support"].each do |rspec_gem|
|
59
|
-
if rspec.git?
|
60
|
-
gem rspec_gem, git: "https://github.com/rspec/#{rspec_gem}.git", branch: rspec.branch
|
61
|
-
elsif rspec_gem != "rspec-support" || rspec.mm?("3.0")
|
62
|
-
gem rspec_gem, rspec.gem_version
|
63
|
-
end
|
64
|
-
end
|
1
|
+
["3.2", "4.0", "4.1"].each do |rails|
|
2
|
+
["2.99", "3.0", "3.1"].each do |rspec|
|
3
|
+
appraise "rails-#{rails}-rspec-#{rspec}" do
|
4
|
+
rails_v = "~> #{rails}"
|
5
|
+
rspec_v = "~> #{rspec}"
|
6
|
+
|
7
|
+
gem "activesupport", rails_v, require: "active_support/all"
|
8
|
+
gem "actionpack", rails_v, require: "action_controller"
|
9
|
+
gem "activerecord", rails_v, require: "active_record"
|
10
|
+
gem "actionview", rails_v, require: "action_view" if rails == "4.1"
|
11
|
+
|
12
|
+
gem "rspec", rspec_v
|
13
|
+
gem "rspec-core", rspec_v
|
14
|
+
gem "rspec-expectations", rspec_v
|
15
|
+
gem "rspec-mocks", rspec_v
|
16
|
+
gem "rspec-support", rspec_v unless rspec == "2.99"
|
65
17
|
end
|
66
18
|
end
|
67
19
|
end
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
RSpec Matchers to simplify writing unit and feature tests for your Rails applications.
|
9
9
|
|
10
|
-
Compatible with Ruby 1.9.2 and greater, Rails 3.2 and greater, and RSpec 2.
|
10
|
+
Compatible with Ruby 1.9.2 and greater, Rails 3.2 and greater, and RSpec 2.99 and greater.
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 3.2", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 3.2", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 3.2", :require => "active_record"
|
14
|
+
gem "rspec", "~> 2.99"
|
15
|
+
gem "rspec-core", "~> 2.99"
|
16
|
+
gem "rspec-expectations", "~> 2.99"
|
17
|
+
gem "rspec-mocks", "~> 2.99"
|
18
|
+
|
19
|
+
group :tools do
|
20
|
+
gem "guard"
|
21
|
+
gem "guard-rspec"
|
22
|
+
gem "byebug"
|
23
|
+
end
|
24
|
+
|
25
|
+
gemspec :path => "../"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 3.2", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 3.2", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 3.2", :require => "active_record"
|
14
|
+
gem "rspec", "~> 3.0"
|
15
|
+
gem "rspec-core", "~> 3.0"
|
16
|
+
gem "rspec-expectations", "~> 3.0"
|
17
|
+
gem "rspec-mocks", "~> 3.0"
|
18
|
+
gem "rspec-support", "~> 3.0"
|
19
|
+
|
20
|
+
group :tools do
|
21
|
+
gem "guard"
|
22
|
+
gem "guard-rspec"
|
23
|
+
gem "byebug"
|
24
|
+
end
|
25
|
+
|
26
|
+
gemspec :path => "../"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 3.2", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 3.2", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 3.2", :require => "active_record"
|
14
|
+
gem "rspec", "~> 3.1"
|
15
|
+
gem "rspec-core", "~> 3.1"
|
16
|
+
gem "rspec-expectations", "~> 3.1"
|
17
|
+
gem "rspec-mocks", "~> 3.1"
|
18
|
+
gem "rspec-support", "~> 3.1"
|
19
|
+
|
20
|
+
group :tools do
|
21
|
+
gem "guard"
|
22
|
+
gem "guard-rspec"
|
23
|
+
gem "byebug"
|
24
|
+
end
|
25
|
+
|
26
|
+
gemspec :path => "../"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 4.0", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 4.0", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 4.0", :require => "active_record"
|
14
|
+
gem "rspec", "~> 2.99"
|
15
|
+
gem "rspec-core", "~> 2.99"
|
16
|
+
gem "rspec-expectations", "~> 2.99"
|
17
|
+
gem "rspec-mocks", "~> 2.99"
|
18
|
+
|
19
|
+
group :tools do
|
20
|
+
gem "guard"
|
21
|
+
gem "guard-rspec"
|
22
|
+
gem "byebug"
|
23
|
+
end
|
24
|
+
|
25
|
+
gemspec :path => "../"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 4.0", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 4.0", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 4.0", :require => "active_record"
|
14
|
+
gem "rspec", "~> 3.0"
|
15
|
+
gem "rspec-core", "~> 3.0"
|
16
|
+
gem "rspec-expectations", "~> 3.0"
|
17
|
+
gem "rspec-mocks", "~> 3.0"
|
18
|
+
gem "rspec-support", "~> 3.0"
|
19
|
+
|
20
|
+
group :tools do
|
21
|
+
gem "guard"
|
22
|
+
gem "guard-rspec"
|
23
|
+
gem "byebug"
|
24
|
+
end
|
25
|
+
|
26
|
+
gemspec :path => "../"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 4.0", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 4.0", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 4.0", :require => "active_record"
|
14
|
+
gem "rspec", "~> 3.1"
|
15
|
+
gem "rspec-core", "~> 3.1"
|
16
|
+
gem "rspec-expectations", "~> 3.1"
|
17
|
+
gem "rspec-mocks", "~> 3.1"
|
18
|
+
gem "rspec-support", "~> 3.1"
|
19
|
+
|
20
|
+
group :tools do
|
21
|
+
gem "guard"
|
22
|
+
gem "guard-rspec"
|
23
|
+
gem "byebug"
|
24
|
+
end
|
25
|
+
|
26
|
+
gemspec :path => "../"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 4.1", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 4.1", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 4.1", :require => "active_record"
|
14
|
+
gem "actionview", "~> 4.1", :require => "action_view"
|
15
|
+
gem "rspec", "~> 2.99"
|
16
|
+
gem "rspec-core", "~> 2.99"
|
17
|
+
gem "rspec-expectations", "~> 2.99"
|
18
|
+
gem "rspec-mocks", "~> 2.99"
|
19
|
+
|
20
|
+
group :tools do
|
21
|
+
gem "guard"
|
22
|
+
gem "guard-rspec"
|
23
|
+
gem "byebug"
|
24
|
+
end
|
25
|
+
|
26
|
+
gemspec :path => "../"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 4.1", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 4.1", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 4.1", :require => "active_record"
|
14
|
+
gem "actionview", "~> 4.1", :require => "action_view"
|
15
|
+
gem "rspec", "~> 3.0"
|
16
|
+
gem "rspec-core", "~> 3.0"
|
17
|
+
gem "rspec-expectations", "~> 3.0"
|
18
|
+
gem "rspec-mocks", "~> 3.0"
|
19
|
+
gem "rspec-support", "~> 3.0"
|
20
|
+
|
21
|
+
group :tools do
|
22
|
+
gem "guard"
|
23
|
+
gem "guard-rspec"
|
24
|
+
gem "byebug"
|
25
|
+
end
|
26
|
+
|
27
|
+
gemspec :path => "../"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "bundler"
|
6
|
+
gem "appraisal"
|
7
|
+
gem "rake"
|
8
|
+
gem "fuubar"
|
9
|
+
gem "simplecov", :require => false
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "activesupport", "~> 4.1", :require => "active_support/all"
|
12
|
+
gem "actionpack", "~> 4.1", :require => "action_controller"
|
13
|
+
gem "activerecord", "~> 4.1", :require => "active_record"
|
14
|
+
gem "actionview", "~> 4.1", :require => "action_view"
|
15
|
+
gem "rspec", "~> 3.1"
|
16
|
+
gem "rspec-core", "~> 3.1"
|
17
|
+
gem "rspec-expectations", "~> 3.1"
|
18
|
+
gem "rspec-mocks", "~> 3.1"
|
19
|
+
gem "rspec-support", "~> 3.1"
|
20
|
+
|
21
|
+
group :tools do
|
22
|
+
gem "guard"
|
23
|
+
gem "guard-rspec"
|
24
|
+
gem "byebug"
|
25
|
+
end
|
26
|
+
|
27
|
+
gemspec :path => "../"
|
@@ -80,15 +80,17 @@ module Warp
|
|
80
80
|
display_options = options.first
|
81
81
|
options = display_options.try(:dup) || {}
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
83
|
+
if options.empty?
|
84
|
+
options = nil
|
85
|
+
else
|
86
|
+
case validator
|
87
|
+
when :uniqueness
|
88
|
+
options = {case_sensitive: true}.merge(options)
|
89
|
+
when :acceptance
|
90
|
+
options = {allow_nil: true, accept: "1"}.merge(options)
|
91
|
+
end
|
88
92
|
end
|
89
93
|
|
90
|
-
options = nil if options.empty?
|
91
|
-
|
92
94
|
ValidationMatcher.new(attr_name, validator_classes, options, display_options)
|
93
95
|
end
|
94
96
|
end
|
data/lib/warp/version.rb
CHANGED
@@ -116,14 +116,26 @@ describe Warp::ModelMatchers::ValidationMatcher do
|
|
116
116
|
end
|
117
117
|
|
118
118
|
context "with a matching validation" do
|
119
|
-
|
120
|
-
|
121
|
-
|
119
|
+
with_contexts do
|
120
|
+
context "with no options" do
|
121
|
+
before do
|
122
|
+
model.send(validation_method, attr_name, validation_base_options)
|
123
|
+
end
|
124
|
+
end
|
122
125
|
|
123
|
-
|
126
|
+
context "with options" do
|
127
|
+
before do
|
128
|
+
model.send(validation_method, attr_name, matcher_options)
|
129
|
+
end
|
130
|
+
end
|
124
131
|
|
125
|
-
|
126
|
-
|
132
|
+
behaviour do
|
133
|
+
specify { expect(subject).to match(model_or_instance) }
|
134
|
+
|
135
|
+
describe_failure_message_when_negated do
|
136
|
+
specify { expect(subject).to eq "expected TestModel to not have validator #{validator_names} on :#{attr_name}" }
|
137
|
+
end
|
138
|
+
end
|
127
139
|
end
|
128
140
|
end
|
129
141
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Drake-Brockman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -43,18 +43,15 @@ files:
|
|
43
43
|
- LICENSE
|
44
44
|
- README.md
|
45
45
|
- Rakefile
|
46
|
-
- gemfiles/rails_3.2_rspec_2.
|
47
|
-
- gemfiles/rails_3.
|
48
|
-
- gemfiles/rails_3.2_rspec_3.
|
49
|
-
- gemfiles/
|
50
|
-
- gemfiles/rails_4.
|
51
|
-
- gemfiles/rails_4.
|
52
|
-
- gemfiles/rails_4.
|
53
|
-
- gemfiles/rails_4.
|
54
|
-
- gemfiles/rails_4.1.
|
55
|
-
- gemfiles/rails_4.1.0.beta1_rspec_2.99.0.beta1.gemfile
|
56
|
-
- gemfiles/rails_4.1.0.beta1_rspec_3.0.0.beta1.gemfile
|
57
|
-
- gemfiles/rails_4.1.0.beta1_rspec_master.gemfile
|
46
|
+
- gemfiles/rails_3.2_rspec_2.99.gemfile
|
47
|
+
- gemfiles/rails_3.2_rspec_3.0.gemfile
|
48
|
+
- gemfiles/rails_3.2_rspec_3.1.gemfile
|
49
|
+
- gemfiles/rails_4.0_rspec_2.99.gemfile
|
50
|
+
- gemfiles/rails_4.0_rspec_3.0.gemfile
|
51
|
+
- gemfiles/rails_4.0_rspec_3.1.gemfile
|
52
|
+
- gemfiles/rails_4.1_rspec_2.99.gemfile
|
53
|
+
- gemfiles/rails_4.1_rspec_3.0.gemfile
|
54
|
+
- gemfiles/rails_4.1_rspec_3.1.gemfile
|
58
55
|
- lib/warp.rb
|
59
56
|
- lib/warp/controller_matchers.rb
|
60
57
|
- lib/warp/controller_matchers/assign_matcher.rb
|
@@ -99,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
96
|
version: '0'
|
100
97
|
requirements: []
|
101
98
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.2.
|
99
|
+
rubygems_version: 2.2.1
|
103
100
|
signing_key:
|
104
101
|
specification_version: 4
|
105
102
|
summary: Warp provides matchers for testing your Rails application with RSpec.
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 3.2", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 3.2", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 3.2", :require=>"active_record"
|
14
|
-
gem "rspec", "~> 2.14"
|
15
|
-
gem "rspec-core", "~> 2.14"
|
16
|
-
gem "rspec-expectations", "~> 2.14"
|
17
|
-
gem "rspec-mocks", "~> 2.14"
|
18
|
-
|
19
|
-
group :tools do
|
20
|
-
gem "guard"
|
21
|
-
gem "guard-rspec"
|
22
|
-
gem "byebug"
|
23
|
-
end
|
24
|
-
|
25
|
-
gemspec :path=>".././"
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 3.2", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 3.2", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 3.2", :require=>"active_record"
|
14
|
-
gem "rspec", "2.99.0.beta1"
|
15
|
-
gem "rspec-core", "2.99.0.beta1"
|
16
|
-
gem "rspec-expectations", "2.99.0.beta1"
|
17
|
-
gem "rspec-mocks", "2.99.0.beta1"
|
18
|
-
|
19
|
-
group :tools do
|
20
|
-
gem "guard"
|
21
|
-
gem "guard-rspec"
|
22
|
-
gem "byebug"
|
23
|
-
end
|
24
|
-
|
25
|
-
gemspec :path=>".././"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 3.2", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 3.2", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 3.2", :require=>"active_record"
|
14
|
-
gem "rspec", "3.0.0.beta1"
|
15
|
-
gem "rspec-core", "3.0.0.beta1"
|
16
|
-
gem "rspec-expectations", "3.0.0.beta1"
|
17
|
-
gem "rspec-mocks", "3.0.0.beta1"
|
18
|
-
gem "rspec-support", "3.0.0.beta1"
|
19
|
-
|
20
|
-
group :tools do
|
21
|
-
gem "guard"
|
22
|
-
gem "guard-rspec"
|
23
|
-
gem "byebug"
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec :path=>".././"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 3.2", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 3.2", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 3.2", :require=>"active_record"
|
14
|
-
gem "rspec", :git=>"https://github.com/rspec/rspec.git", :branch=>"master"
|
15
|
-
gem "rspec-core", :git=>"https://github.com/rspec/rspec-core.git", :branch=>"master"
|
16
|
-
gem "rspec-expectations", :git=>"https://github.com/rspec/rspec-expectations.git", :branch=>"master"
|
17
|
-
gem "rspec-mocks", :git=>"https://github.com/rspec/rspec-mocks.git", :branch=>"master"
|
18
|
-
gem "rspec-support", :git=>"https://github.com/rspec/rspec-support.git", :branch=>"master"
|
19
|
-
|
20
|
-
group :tools do
|
21
|
-
gem "guard"
|
22
|
-
gem "guard-rspec"
|
23
|
-
gem "byebug"
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec :path=>".././"
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 4.0", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 4.0", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 4.0", :require=>"active_record"
|
14
|
-
gem "rspec", "~> 2.14"
|
15
|
-
gem "rspec-core", "~> 2.14"
|
16
|
-
gem "rspec-expectations", "~> 2.14"
|
17
|
-
gem "rspec-mocks", "~> 2.14"
|
18
|
-
|
19
|
-
group :tools do
|
20
|
-
gem "guard"
|
21
|
-
gem "guard-rspec"
|
22
|
-
gem "byebug"
|
23
|
-
end
|
24
|
-
|
25
|
-
gemspec :path=>".././"
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 4.0", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 4.0", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 4.0", :require=>"active_record"
|
14
|
-
gem "rspec", "2.99.0.beta1"
|
15
|
-
gem "rspec-core", "2.99.0.beta1"
|
16
|
-
gem "rspec-expectations", "2.99.0.beta1"
|
17
|
-
gem "rspec-mocks", "2.99.0.beta1"
|
18
|
-
|
19
|
-
group :tools do
|
20
|
-
gem "guard"
|
21
|
-
gem "guard-rspec"
|
22
|
-
gem "byebug"
|
23
|
-
end
|
24
|
-
|
25
|
-
gemspec :path=>".././"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 4.0", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 4.0", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 4.0", :require=>"active_record"
|
14
|
-
gem "rspec", "3.0.0.beta1"
|
15
|
-
gem "rspec-core", "3.0.0.beta1"
|
16
|
-
gem "rspec-expectations", "3.0.0.beta1"
|
17
|
-
gem "rspec-mocks", "3.0.0.beta1"
|
18
|
-
gem "rspec-support", "3.0.0.beta1"
|
19
|
-
|
20
|
-
group :tools do
|
21
|
-
gem "guard"
|
22
|
-
gem "guard-rspec"
|
23
|
-
gem "byebug"
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec :path=>".././"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "~> 4.0", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "~> 4.0", :require=>"action_controller"
|
13
|
-
gem "activerecord", "~> 4.0", :require=>"active_record"
|
14
|
-
gem "rspec", :git=>"https://github.com/rspec/rspec.git", :branch=>"master"
|
15
|
-
gem "rspec-core", :git=>"https://github.com/rspec/rspec-core.git", :branch=>"master"
|
16
|
-
gem "rspec-expectations", :git=>"https://github.com/rspec/rspec-expectations.git", :branch=>"master"
|
17
|
-
gem "rspec-mocks", :git=>"https://github.com/rspec/rspec-mocks.git", :branch=>"master"
|
18
|
-
gem "rspec-support", :git=>"https://github.com/rspec/rspec-support.git", :branch=>"master"
|
19
|
-
|
20
|
-
group :tools do
|
21
|
-
gem "guard"
|
22
|
-
gem "guard-rspec"
|
23
|
-
gem "byebug"
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec :path=>".././"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "4.1.0.beta1", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "4.1.0.beta1", :require=>"action_controller"
|
13
|
-
gem "activerecord", "4.1.0.beta1", :require=>"active_record"
|
14
|
-
gem "actionview", "4.1.0.beta1", :require=>"action_view"
|
15
|
-
gem "rspec", "~> 2.14"
|
16
|
-
gem "rspec-core", "~> 2.14"
|
17
|
-
gem "rspec-expectations", "~> 2.14"
|
18
|
-
gem "rspec-mocks", "~> 2.14"
|
19
|
-
|
20
|
-
group :tools do
|
21
|
-
gem "guard"
|
22
|
-
gem "guard-rspec"
|
23
|
-
gem "byebug"
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec :path=>".././"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "4.1.0.beta1", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "4.1.0.beta1", :require=>"action_controller"
|
13
|
-
gem "activerecord", "4.1.0.beta1", :require=>"active_record"
|
14
|
-
gem "actionview", "4.1.0.beta1", :require=>"action_view"
|
15
|
-
gem "rspec", "2.99.0.beta1"
|
16
|
-
gem "rspec-core", "2.99.0.beta1"
|
17
|
-
gem "rspec-expectations", "2.99.0.beta1"
|
18
|
-
gem "rspec-mocks", "2.99.0.beta1"
|
19
|
-
|
20
|
-
group :tools do
|
21
|
-
gem "guard"
|
22
|
-
gem "guard-rspec"
|
23
|
-
gem "byebug"
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec :path=>".././"
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "4.1.0.beta1", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "4.1.0.beta1", :require=>"action_controller"
|
13
|
-
gem "activerecord", "4.1.0.beta1", :require=>"active_record"
|
14
|
-
gem "actionview", "4.1.0.beta1", :require=>"action_view"
|
15
|
-
gem "rspec", "3.0.0.beta1"
|
16
|
-
gem "rspec-core", "3.0.0.beta1"
|
17
|
-
gem "rspec-expectations", "3.0.0.beta1"
|
18
|
-
gem "rspec-mocks", "3.0.0.beta1"
|
19
|
-
gem "rspec-support", "3.0.0.beta1"
|
20
|
-
|
21
|
-
group :tools do
|
22
|
-
gem "guard"
|
23
|
-
gem "guard-rspec"
|
24
|
-
gem "byebug"
|
25
|
-
end
|
26
|
-
|
27
|
-
gemspec :path=>".././"
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "bundler", "~> 1.5.1"
|
6
|
-
gem "appraisal", "1.0.0.beta2"
|
7
|
-
gem "rake"
|
8
|
-
gem "fuubar"
|
9
|
-
gem "simplecov", :require=>false
|
10
|
-
gem "coveralls", :require=>false
|
11
|
-
gem "activesupport", "4.1.0.beta1", :require=>"active_support/all"
|
12
|
-
gem "actionpack", "4.1.0.beta1", :require=>"action_controller"
|
13
|
-
gem "activerecord", "4.1.0.beta1", :require=>"active_record"
|
14
|
-
gem "actionview", "4.1.0.beta1", :require=>"action_view"
|
15
|
-
gem "rspec", :git=>"https://github.com/rspec/rspec.git", :branch=>"master"
|
16
|
-
gem "rspec-core", :git=>"https://github.com/rspec/rspec-core.git", :branch=>"master"
|
17
|
-
gem "rspec-expectations", :git=>"https://github.com/rspec/rspec-expectations.git", :branch=>"master"
|
18
|
-
gem "rspec-mocks", :git=>"https://github.com/rspec/rspec-mocks.git", :branch=>"master"
|
19
|
-
gem "rspec-support", :git=>"https://github.com/rspec/rspec-support.git", :branch=>"master"
|
20
|
-
|
21
|
-
group :tools do
|
22
|
-
gem "guard"
|
23
|
-
gem "guard-rspec"
|
24
|
-
gem "byebug"
|
25
|
-
end
|
26
|
-
|
27
|
-
gemspec :path=>".././"
|