seatbelt 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 +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +26 -7
- data/CHANGELOG.md +5 -1
- data/README.md +9 -3
- data/gemfiles/rails_4.1.gemfile +7 -0
- data/lib/seatbelt/version.rb +1 -1
- data/lib/seatbelt.rb +12 -4
- data/seatbelt.gemspec +3 -3
- data/test/test_helper.rb +2 -2
- metadata +20 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a73542ab17c3162508ea61ab8c5fc01d337a176b
|
4
|
+
data.tar.gz: 3539ae306179a86e2d05a24e68500b711b44a6d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e42e262d575d7a27452438b1c433577a03d99c8ab72c431f114d15d78dcc5a75d4a1ee7b229966c8ef774d435c37ca62eeab10b2100bf87134c666dbefe01b
|
7
|
+
data.tar.gz: b199c476a01ae3e6fbb16962b515fd96778140e368897ef1f068db60a8ad592196589c05a126908fa15a0eff5e2ec2362186329847567a20bc559f6e34bbbae3
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -5,6 +5,7 @@ rvm:
|
|
5
5
|
- 1.9.2
|
6
6
|
- 1.9.3
|
7
7
|
- 2.0.0
|
8
|
+
- 2.1.0
|
8
9
|
# - jruby-18mode # JRuby in 1.8 mode
|
9
10
|
- jruby-19mode # JRuby in 1.9 mode
|
10
11
|
- rbx-2.2.1
|
@@ -12,16 +13,34 @@ rvm:
|
|
12
13
|
gemfile:
|
13
14
|
- gemfiles/rails_3.2.gemfile
|
14
15
|
- gemfiles/rails_4.0.gemfile
|
16
|
+
- gemfiles/rails_4.1.gemfile
|
15
17
|
|
16
18
|
matrix:
|
17
19
|
allow_failures:
|
18
20
|
- rvm: rbx-2.2.1
|
19
21
|
- rvm: jruby-19mode
|
20
22
|
exclude:
|
21
|
-
-
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
-
|
23
|
+
- rvm: 1.8.7
|
24
|
+
gemfile: gemfiles/rails_4.0.gemfile
|
25
|
+
- rvm: 1.9.2
|
26
|
+
gemfile: gemfiles/rails_4.0.gemfile
|
27
|
+
- rvm: 1.9.3
|
28
|
+
gemfile: gemfiles/rails_4.0.gemfile
|
29
|
+
- rvm: 1.8.7
|
30
|
+
gemfile: gemfiles/rails_4.1.gemfile
|
31
|
+
- rvm: 1.9.2
|
32
|
+
gemfile: gemfiles/rails_4.1.gemfile
|
33
|
+
- rvm: 1.9.3
|
34
|
+
gemfile: gemfiles/rails_4.1.gemfile
|
35
|
+
- rvm: jruby-19mode
|
36
|
+
gemfile: gemfiles/rails_3.2.gemfile
|
37
|
+
- rvm: jruby-19mode
|
38
|
+
gemfile: gemfiles/rails_4.0.gemfile
|
39
|
+
- rvm: jruby-19mode
|
40
|
+
gemfile: gemfiles/rails_4.1.gemfile
|
41
|
+
- rvm: rbx-2.2.1
|
42
|
+
gemfile: gemfiles/rails_3.2.gemfile
|
43
|
+
- rvm: rbx-2.2.1
|
44
|
+
gemfile: gemfiles/rails_4.0.gemfile
|
45
|
+
- rvm: rbx-2.2.1
|
46
|
+
gemfile: gemfiles/rails_4.1.gemfile
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.3.0
|
4
|
+
|
5
|
+
* added support for Rails 4.1 and Minitest >= 5.x (thanks to [@clod81](https://github.com/clod81))
|
6
|
+
|
3
7
|
## 0.2.0
|
4
8
|
|
5
|
-
* added support for Rails 4 (thanks to [@clod81](https://github.com/clod81))
|
9
|
+
* added support for Rails 4.0 (thanks to [@clod81](https://github.com/clod81))
|
6
10
|
|
7
11
|
## 0.1.2
|
8
12
|
|
data/README.md
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
# Seatbelt
|
1
|
+
# Seatbelt
|
2
|
+
|
3
|
+
[![Build Status](https://secure.travis-ci.org/alto/seatbelt.png)](http://travis-ci.org/alto/seatbelt)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/alto/seatbelt.png)](https://codeclimate.com/github/alto/seatbelt)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/aasm/aasm/badge.png?branch=master)](https://coveralls.io/r/aasm/aasm)
|
2
6
|
|
3
7
|
Seatbelt provides a number of custom, high-level assertions for Ruby and Ruby on Rails. The assertions work well with Ruby
|
4
8
|
[1.8.7](http://ruby-doc.org/core-1.8.7/),
|
5
|
-
[1.9.2](http://ruby-doc.org/core-1.9.2/),
|
6
|
-
[1.9.3](http://ruby-doc.org/core-1.9.3/)
|
9
|
+
[1.9.2](http://ruby-doc.org/core-1.9.2/),
|
10
|
+
[1.9.3](http://ruby-doc.org/core-1.9.3/),
|
11
|
+
[2.0.0](http://ruby-doc.org/core-2.0.0/) and
|
12
|
+
[2.1.0](http://ruby-doc.org/core-2.1.0/).
|
7
13
|
This includes compatibility with
|
8
14
|
[test/unit](http://ruby-doc.org/stdlib-1.8.7/libdoc/test/unit/rdoc/index.html) and
|
9
15
|
[minitest](http://ruby-doc.org/stdlib-1.9.3/libdoc/minitest/unit/rdoc/index.html).
|
data/lib/seatbelt/version.rb
CHANGED
data/lib/seatbelt.rb
CHANGED
@@ -12,9 +12,17 @@ if defined?(Test)
|
|
12
12
|
end
|
13
13
|
|
14
14
|
if defined?(Minitest)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
if defined?(Minitest::Unit)
|
16
|
+
class Minitest::Unit::TestCase
|
17
|
+
include Seatbelt::AssertContentType if defined?(ActionController)
|
18
|
+
include Seatbelt::AssertJson
|
19
|
+
include Seatbelt::AssertMail if defined?(ActionMailer)
|
20
|
+
end
|
21
|
+
else # Minitest >= 5.x
|
22
|
+
class Minitest::Test
|
23
|
+
include Seatbelt::AssertContentType if defined?(ActionController)
|
24
|
+
include Seatbelt::AssertJson
|
25
|
+
include Seatbelt::AssertMail if defined?(ActionMailer)
|
26
|
+
end
|
19
27
|
end
|
20
28
|
end
|
data/seatbelt.gemspec
CHANGED
@@ -19,11 +19,11 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.add_dependency 'multi_json'
|
20
20
|
|
21
21
|
gem.add_development_dependency 'rake'
|
22
|
-
gem.add_development_dependency 'minitest'
|
23
|
-
gem.add_development_dependency 'turn'
|
22
|
+
gem.add_development_dependency 'minitest'
|
23
|
+
# gem.add_development_dependency 'turn'
|
24
24
|
gem.add_development_dependency 'travis-lint'
|
25
25
|
gem.add_development_dependency 'json'
|
26
26
|
gem.add_development_dependency 'mocha'
|
27
27
|
# gem.add_development_dependency 'debugger'
|
28
|
-
|
28
|
+
# gem.add_development_dependency 'pry'
|
29
29
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
|
-
require 'turn/autorun'
|
2
|
+
# require 'turn/autorun'
|
3
3
|
require 'active_support'
|
4
4
|
require 'action_mailer'
|
5
5
|
require 'json'
|
@@ -12,7 +12,7 @@ require File.dirname(__FILE__) + '/../lib/seatbelt.rb'
|
|
12
12
|
Dir[File.dirname(__FILE__) + "/helpers/**/*.rb"].sort.each { |f| require File.expand_path(f) }
|
13
13
|
|
14
14
|
|
15
|
-
Turn.config.format = :dot
|
15
|
+
# Turn.config.format = :dot
|
16
16
|
|
17
17
|
class Minitest::Unit::TestCase
|
18
18
|
def assert_assertion_fails(&block)
|
metadata
CHANGED
@@ -1,111 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seatbelt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thorsten Böttger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 4.7.5
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 4.7.5
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: turn
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
45
|
+
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
47
|
version: '0'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- -
|
52
|
+
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: travis-lint
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- -
|
59
|
+
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '0'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- -
|
66
|
+
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: json
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
|
-
- -
|
73
|
+
- - ">="
|
88
74
|
- !ruby/object:Gem::Version
|
89
75
|
version: '0'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
|
-
- -
|
80
|
+
- - ">="
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: mocha
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- -
|
87
|
+
- - ">="
|
102
88
|
- !ruby/object:Gem::Version
|
103
89
|
version: '0'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- -
|
94
|
+
- - ">="
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
111
97
|
description: Goal is to provide custom, high quality and high level assertions for
|
@@ -116,8 +102,8 @@ executables: []
|
|
116
102
|
extensions: []
|
117
103
|
extra_rdoc_files: []
|
118
104
|
files:
|
119
|
-
- .gitignore
|
120
|
-
- .travis.yml
|
105
|
+
- ".gitignore"
|
106
|
+
- ".travis.yml"
|
121
107
|
- CHANGELOG.md
|
122
108
|
- Gemfile
|
123
109
|
- LICENSE
|
@@ -125,6 +111,7 @@ files:
|
|
125
111
|
- Rakefile
|
126
112
|
- gemfiles/rails_3.2.gemfile
|
127
113
|
- gemfiles/rails_4.0.gemfile
|
114
|
+
- gemfiles/rails_4.1.gemfile
|
128
115
|
- lib/seatbelt.rb
|
129
116
|
- lib/seatbelt/assert_content_type.rb
|
130
117
|
- lib/seatbelt/assert_json.rb
|
@@ -147,17 +134,17 @@ require_paths:
|
|
147
134
|
- lib
|
148
135
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
136
|
requirements:
|
150
|
-
- -
|
137
|
+
- - ">="
|
151
138
|
- !ruby/object:Gem::Version
|
152
139
|
version: '0'
|
153
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
141
|
requirements:
|
155
|
-
- -
|
142
|
+
- - ">="
|
156
143
|
- !ruby/object:Gem::Version
|
157
144
|
version: '0'
|
158
145
|
requirements: []
|
159
146
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.2.2
|
161
148
|
signing_key:
|
162
149
|
specification_version: 4
|
163
150
|
summary: Provide custom assertions for Ruby and Ruby on Rails
|