capybara_minitest_spec 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile.lock +6 -6
- data/README.md +10 -2
- data/capybara_minitest_spec.gemspec +1 -1
- data/gemfiles/Gemfile_minitest_4 +5 -0
- data/lib/capybara_minitest_spec.rb +0 -1
- data/lib/capybara_minitest_spec/version.rb +1 -1
- data/spec/capybara_rspec_matchers.spec.rb +10 -4
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a6a748cfac03182125c90c7ac0f42ae56535bf8
|
4
|
+
data.tar.gz: 17ee34f566594752a0bbfc9ce154e30b2ccc62aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c552ac20b513d98bfc3d80fb51b45cfc18fffe92e1574b8105b048bf35d893d6ad7779498b6b7c8e088e3c0e5bb04ded0e2467dd8233324308d5cd5ff2e0b2
|
7
|
+
data.tar.gz: 45c86ab1b30e1d52ebd1c9ae978459a1047fe683a317769ffd3bd12a1aaf6c65daed545ad877e45825136291b012262b0ec0ae29125811e05a2dae059b967e53
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capybara_minitest_spec (1.0.
|
4
|
+
capybara_minitest_spec (1.0.5)
|
5
5
|
capybara (>= 2)
|
6
|
-
minitest (>=
|
6
|
+
minitest (>= 4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
@@ -15,11 +15,11 @@ GEM
|
|
15
15
|
rack (>= 1.0.0)
|
16
16
|
rack-test (>= 0.5.4)
|
17
17
|
xpath (~> 2.0)
|
18
|
-
mime-types (2.3)
|
19
|
-
mini_portile (0.6.
|
18
|
+
mime-types (2.4.3)
|
19
|
+
mini_portile (0.6.1)
|
20
20
|
minitest (5.4.2)
|
21
|
-
nokogiri (1.6.
|
22
|
-
mini_portile (
|
21
|
+
nokogiri (1.6.4.1)
|
22
|
+
mini_portile (~> 0.6.0)
|
23
23
|
rack (1.5.2)
|
24
24
|
rack-protection (1.5.3)
|
25
25
|
rack
|
data/README.md
CHANGED
@@ -56,9 +56,17 @@ NOTE: If after installing the Capybara gem, Nokogiri isn't installed, it's a kno
|
|
56
56
|
|
57
57
|
## Compatibility
|
58
58
|
|
59
|
-
|
59
|
+
### Capybara
|
60
60
|
|
61
|
-
|
61
|
+
In theory, this should work with Capybara >= 2. The latest version it was tested with was Capybara 2.4.1.
|
62
|
+
|
63
|
+
For Capybara < 2 support, use a version of this gem < 1.0.
|
64
|
+
|
65
|
+
### Minitest
|
66
|
+
|
67
|
+
Supports Minitest >= 4.
|
68
|
+
It may work for earlier versions, I just haven't tested it.
|
69
|
+
If you need it to support an earlier version, let me know and I'll see what I can do.
|
62
70
|
|
63
71
|
## Testing
|
64
72
|
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
22
|
s.add_runtime_dependency 'capybara', '>= 2'
|
23
|
-
s.add_runtime_dependency 'minitest', '>=
|
23
|
+
s.add_runtime_dependency 'minitest', '>= 4'
|
24
24
|
|
25
25
|
s.add_development_dependency 'awesome_print'
|
26
26
|
s.add_development_dependency 'rake'
|
@@ -3,11 +3,17 @@
|
|
3
3
|
require_relative 'helper'
|
4
4
|
|
5
5
|
# Bridge some gaps between RSpec and MiniTest.
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
case MiniTest::Unit::VERSION.split('.').first.to_i
|
7
|
+
when 5
|
8
|
+
class Minitest::Test
|
9
|
+
class << self
|
10
|
+
alias_method :context, :describe
|
11
|
+
end
|
12
|
+
alias_method :expect, :proc
|
9
13
|
end
|
10
|
-
|
14
|
+
else
|
15
|
+
Kernel.send(:alias_method, :context, :describe)
|
16
|
+
Kernel.send(:alias_method, :expect, :proc)
|
11
17
|
end
|
12
18
|
|
13
19
|
module MiniTest::Assertions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara_minitest_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Ning
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: awesome_print
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- README.md
|
99
99
|
- Rakefile
|
100
100
|
- capybara_minitest_spec.gemspec
|
101
|
+
- gemfiles/Gemfile_minitest_4
|
101
102
|
- lib/capybara_minitest_spec.rb
|
102
103
|
- lib/capybara_minitest_spec/test_name.rb
|
103
104
|
- lib/capybara_minitest_spec/version.rb
|