minitest-rails-capybara 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +8 -2
- data/Rakefile +1 -1
- data/lib/minitest-rails-capybara.rb +1 -1
- data/lib/minitest/rails/capybara.rb +7 -6
- data/minitest-rails-capybara.gemspec +6 -6
- data/test/test_spec_type.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60ceb32c547d9ab350d89ca3f8f8852922e527c8
|
4
|
+
data.tar.gz: 119f39793033d0b385581f871cd5f52dcd4b317d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1d932a1a1eb9b0a5940b0592fdf43999e5e3320624f1a0d49a56b40cfba65ffa341464d31111a38e4a6130898b019e075f0e5446a499d7a88508ec8699abc8c
|
7
|
+
data.tar.gz: e3a1b89032baac8cf8a0dd3788841e9299a64e21143c101615e888ebb59a7548f38369bf1d379616f9c0cab8091ff47ae27194e24dea273aca3fb334880914dc
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
=== 2.1.0 / 2014-07-08
|
2
|
+
|
3
|
+
* Allow use of additional_spec in Minitest's Spec DSL.
|
4
|
+
|
5
|
+
https://github.com/blowmage/minitest-rails-capybara/compare/v2.0.1...v2.1.0
|
6
|
+
|
1
7
|
=== 2.0.1 / 2014-06-14
|
2
8
|
|
3
9
|
* Update dependencies on minitest-capybara and capybara
|
4
10
|
|
5
|
-
https://github.com/blowmage/minitest-rails/compare/v2.0.0...v2.0.1
|
11
|
+
https://github.com/blowmage/minitest-rails-capybara/compare/v2.0.0...v2.0.1
|
6
12
|
|
7
13
|
=== 2.0.0 / 2014-04-21
|
8
14
|
|
@@ -11,7 +17,7 @@ Major release, specific to Rails 4.1+ and Minitest 5.
|
|
11
17
|
* Support additional descriptions in spec types
|
12
18
|
* describe "Users can do things", :capybara do
|
13
19
|
|
14
|
-
https://github.com/blowmage/minitest-rails/compare/v1.0.0...v2.0.0
|
20
|
+
https://github.com/blowmage/minitest-rails-capybara/compare/v1.0.0...v2.0.0
|
15
21
|
|
16
22
|
=== 1.0.0 / 2014-04-15
|
17
23
|
|
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ Hoe.spec "minitest-rails-capybara" do
|
|
19
19
|
|
20
20
|
license "MIT"
|
21
21
|
|
22
|
-
dependency "minitest-rails", "~> 2.
|
22
|
+
dependency "minitest-rails", "~> 2.1"
|
23
23
|
dependency "capybara", "~> 2.0"
|
24
24
|
dependency "minitest-capybara", "~> 0.7.0"
|
25
25
|
dependency "minitest-metadata", "~> 0.5.0"
|
@@ -21,12 +21,13 @@ module Capybara
|
|
21
21
|
|
22
22
|
# Register by name
|
23
23
|
register_spec_type(/(Feature|Browser)( ?Test)?\z/i, self)
|
24
|
-
register_spec_type(self) do |desc, addl|
|
25
|
-
:capybara
|
24
|
+
register_spec_type(self) do |desc, *addl|
|
25
|
+
addl.include? :capybara
|
26
26
|
end
|
27
27
|
|
28
28
|
# Enable Capybara's spec DSL
|
29
29
|
class << self
|
30
|
+
alias :feature :describe
|
30
31
|
alias :background :before
|
31
32
|
alias :scenario :it
|
32
33
|
alias :given :let
|
@@ -62,10 +63,10 @@ module Capybara
|
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
# Add feature to main object
|
67
|
+
def feature desc, *addl, &blk # :nodoc:
|
68
|
+
addl << :capybara
|
69
|
+
describe desc, addl, &blk
|
69
70
|
end
|
70
71
|
|
71
72
|
module Capybara
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: minitest-rails-capybara 2.0.
|
2
|
+
# stub: minitest-rails-capybara 2.1.0.20140708222802 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "minitest-rails-capybara"
|
6
|
-
s.version = "2.0.
|
6
|
+
s.version = "2.1.0.20140708222802"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
10
10
|
s.authors = ["Mike Moore"]
|
11
|
-
s.date = "2014-
|
11
|
+
s.date = "2014-07-09"
|
12
12
|
s.description = "Adds Capybara feature tests in Minitest and Rails."
|
13
13
|
s.email = ["mike@blowmage.com"]
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
|
@@ -24,14 +24,14 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.specification_version = 4
|
25
25
|
|
26
26
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
27
|
-
s.add_runtime_dependency(%q<minitest-rails>, ["~> 2.
|
27
|
+
s.add_runtime_dependency(%q<minitest-rails>, ["~> 2.1"])
|
28
28
|
s.add_runtime_dependency(%q<capybara>, ["~> 2.0"])
|
29
29
|
s.add_runtime_dependency(%q<minitest-capybara>, ["~> 0.7.0"])
|
30
30
|
s.add_runtime_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
|
31
31
|
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
32
32
|
s.add_development_dependency(%q<hoe>, ["~> 3.12"])
|
33
33
|
else
|
34
|
-
s.add_dependency(%q<minitest-rails>, ["~> 2.
|
34
|
+
s.add_dependency(%q<minitest-rails>, ["~> 2.1"])
|
35
35
|
s.add_dependency(%q<capybara>, ["~> 2.0"])
|
36
36
|
s.add_dependency(%q<minitest-capybara>, ["~> 0.7.0"])
|
37
37
|
s.add_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
s.add_dependency(%q<hoe>, ["~> 3.12"])
|
40
40
|
end
|
41
41
|
else
|
42
|
-
s.add_dependency(%q<minitest-rails>, ["~> 2.
|
42
|
+
s.add_dependency(%q<minitest-rails>, ["~> 2.1"])
|
43
43
|
s.add_dependency(%q<capybara>, ["~> 2.0"])
|
44
44
|
s.add_dependency(%q<minitest-capybara>, ["~> 0.7.0"])
|
45
45
|
s.add_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
|
data/test/test_spec_type.rb
CHANGED
@@ -51,6 +51,8 @@ class TestCapybaraSpecType < Minitest::Test
|
|
51
51
|
|
52
52
|
def test_spec_type_resolves_for_additional_desc_capybara
|
53
53
|
refute_capybara Minitest::Spec.spec_type("Unmatched String")
|
54
|
-
assert_capybara Minitest::Spec.spec_type(
|
54
|
+
assert_capybara Minitest::Spec.spec_type("Unmatched String", :capybara)
|
55
|
+
assert_capybara Minitest::Spec.spec_type("Unmatched String", :capybara, :other)
|
56
|
+
assert_capybara Minitest::Spec.spec_type("Unmatched String", :other, :capybara)
|
55
57
|
end
|
56
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-rails-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest-rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: '2.1'
|
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
|
-
version: 2.
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|