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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 547b6483b916b36ae3b2be882f031027256577cb
4
- data.tar.gz: 60c175e2c2a3ed1c0a3cf831b42ea2026b01fca7
3
+ metadata.gz: 60ceb32c547d9ab350d89ca3f8f8852922e527c8
4
+ data.tar.gz: 119f39793033d0b385581f871cd5f52dcd4b317d
5
5
  SHA512:
6
- metadata.gz: 584b65984ce8a127d0eb59bbced7ed063cfc815a353beede463cf13488134732d7ad83dc2e023fadbce771fa478ccfc864c97b3bb04635b2dbbcc1c64cba82e2
7
- data.tar.gz: 4c91dd5e6102c21c03f5f93dcc996e08e85f54d0d1d17d6bbbed28101eb26355c244b7eaf5306cf5461fbae600928e9d51f455b3d552d11801e23620def2939e
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.0.0"
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"
@@ -3,7 +3,7 @@ require "minitest-rails"
3
3
  module Minitest
4
4
  module Rails
5
5
  module Capybara
6
- VERSION = "2.0.1"
6
+ VERSION = "2.1.0"
7
7
  end
8
8
  end
9
9
  end
@@ -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 == addl
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
- module Kernel # :nodoc:
66
- def feature desc, &blk
67
- describe "#{desc} Feature Test", &blk
68
- end
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.1.20140614232206 ruby lib
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.1.20140614232206"
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-06-15"
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.0.0"])
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.0.0"])
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.0.0"])
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"])
@@ -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(["Unmatched String", :capybara])
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.1
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-06-15 00:00:00.000000000 Z
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.0.0
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.0.0
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement