minitest-rails-capybara 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +21 -0
- data/Gemfile +7 -0
- data/Manifest.txt +7 -0
- data/README.rdoc +5 -4
- data/Rakefile +15 -12
- data/gemfiles/3.0.gemfile +5 -0
- data/gemfiles/3.1.gemfile +5 -0
- data/gemfiles/3.2.gemfile +5 -0
- data/gemfiles/4.0.gemfile +4 -0
- data/lib/minitest-rails-capybara.rb +1 -1
- data/lib/minitest/rails/capybara.rb +23 -98
- data/minitest-rails-capybara.gemspec +19 -18
- data/tasks/test.rake +41 -0
- metadata +38 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77f00ff2b7e03e277b777854735fa3920dfd0e67
|
4
|
+
data.tar.gz: 2f450579745b72a8eb480cdeefaf8419ba59eb85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141de8b555fd968b72b43d4b411ae77b796542673c051bff4e45f22fdfc5e8e6efc04dbf55adbb2898b3fdbce5d8881c33b7ddca15bd8f0134515f7a475e5ef8
|
7
|
+
data.tar.gz: d046180db4a59b6912988dd92a3d47d201d3d4b8442b072ae49fe078bd842a0ffc91f2459de2a1c39c35947a3aeb135563d628658116981a5f52dab6bc2ed8d9
|
data/.travis.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
before_install:
|
3
|
+
- gem update --system
|
4
|
+
- gem --version
|
5
|
+
language: ruby
|
6
|
+
notifications:
|
7
|
+
email:
|
8
|
+
- mike@blowmage.com
|
9
|
+
rvm:
|
10
|
+
- 2.1.1
|
11
|
+
- 2.1.0
|
12
|
+
- 2.0.0
|
13
|
+
- 1.9.3
|
14
|
+
- 1.8.7
|
15
|
+
env:
|
16
|
+
- "RAILS_VERSION=4.0"
|
17
|
+
- "RAILS_VERSION=3.2"
|
18
|
+
matrix:
|
19
|
+
exclude:
|
20
|
+
- rvm: 1.8.7
|
21
|
+
env: "RAILS_VERSION=4.0"
|
data/Gemfile
ADDED
data/Manifest.txt
CHANGED
@@ -1,16 +1,23 @@
|
|
1
1
|
.autotest
|
2
2
|
.gemtest
|
3
|
+
.travis.yml
|
3
4
|
CHANGELOG.rdoc
|
5
|
+
Gemfile
|
4
6
|
LICENSE
|
5
7
|
Manifest.txt
|
6
8
|
README.rdoc
|
7
9
|
Rakefile
|
10
|
+
gemfiles/3.0.gemfile
|
11
|
+
gemfiles/3.1.gemfile
|
12
|
+
gemfiles/3.2.gemfile
|
13
|
+
gemfiles/4.0.gemfile
|
8
14
|
lib/generators/mini_test/feature/feature_generator.rb
|
9
15
|
lib/generators/mini_test/feature/templates/feature_spec.rb
|
10
16
|
lib/generators/mini_test/feature/templates/feature_test.rb
|
11
17
|
lib/minitest-rails-capybara.rb
|
12
18
|
lib/minitest/rails/capybara.rb
|
13
19
|
minitest-rails-capybara.gemspec
|
20
|
+
tasks/test.rake
|
14
21
|
test/rails_helper.rb
|
15
22
|
test/test_assertions_expectation.rb
|
16
23
|
test/test_dsl.rb
|
data/README.rdoc
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
Capybara integration for MiniTest and Rails.
|
4
4
|
|
5
|
+
{<img src="https://secure.travis-ci.org/blowmage/minitest-rails-capybara.png" alt="Build Status" />}[http://travis-ci.org/blowmage/minitest-rails-capybara]
|
6
|
+
{<img src="https://codeclimate.com/github/blowmage/minitest-rails-capybara.png" />}[https://codeclimate.com/github/blowmage/minitest-rails-capybara]
|
7
|
+
|
5
8
|
== Install
|
6
9
|
|
7
10
|
gem install minitest-rails-capybara
|
@@ -10,7 +13,6 @@ This installs the following gems:
|
|
10
13
|
|
11
14
|
minitest
|
12
15
|
minitest-rails
|
13
|
-
minitest-matchers
|
14
16
|
minitest-capybara
|
15
17
|
capybara
|
16
18
|
|
@@ -65,9 +67,8 @@ Which will generate a feature test using the Capybara spec DSL:
|
|
65
67
|
If you want Capybara within your integration tests, add the following to your <tt>minitest_helper.rb</tt> file:
|
66
68
|
|
67
69
|
class ActionDispatch::IntegrationTest
|
68
|
-
include Rails.application.routes.url_helpers
|
69
|
-
include Capybara::RSpecMatchers
|
70
70
|
include Capybara::DSL
|
71
|
+
include Capybara::Assertions
|
71
72
|
end
|
72
73
|
|
73
74
|
== Specifying drivers
|
@@ -89,7 +90,7 @@ https://github.com/wojtekmach/minitest-metadata
|
|
89
90
|
|
90
91
|
Issue the following rake command to run your features tests:
|
91
92
|
|
92
|
-
$ rake
|
93
|
+
$ rake minitest:features
|
93
94
|
|
94
95
|
Or add the following to the bottom of your Rakefile to add feature tests to the default testing task:
|
95
96
|
|
data/Rakefile
CHANGED
@@ -1,27 +1,30 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "rubygems"
|
4
|
+
require "hoe"
|
5
5
|
|
6
6
|
Hoe.plugin :git
|
7
7
|
Hoe.plugin :gemspec
|
8
|
-
Hoe.plugins.delete :rubyforge
|
9
8
|
|
10
|
-
Hoe.spec
|
11
|
-
developer
|
9
|
+
Hoe.spec "minitest-rails-capybara" do
|
10
|
+
developer "Mike Moore", "mike@blowmage.com"
|
12
11
|
|
13
|
-
self.summary =
|
14
|
-
self.description =
|
15
|
-
self.urls = [
|
12
|
+
self.summary = "Capybara integration for MiniTest and Rails"
|
13
|
+
self.description = "Adds Capybara feature tests in MiniTest and Rails."
|
14
|
+
self.urls = ["http://blowmage.com/minitest-rails-capybara"]
|
16
15
|
|
17
16
|
self.history_file = "CHANGELOG.rdoc"
|
18
17
|
self.readme_file = "README.rdoc"
|
19
18
|
self.testlib = :minitest
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
dependency
|
24
|
-
dependency
|
20
|
+
license "MIT"
|
21
|
+
|
22
|
+
dependency "minitest-rails", "~> 1.0"
|
23
|
+
dependency "capybara", "~> 2.0"
|
24
|
+
dependency "minitest-capybara", "~> 0.5.0"
|
25
|
+
dependency "minitest-metadata", "~> 0.5.0"
|
25
26
|
end
|
26
27
|
|
28
|
+
Dir["tasks/**/*.rake"].each { |t| load t }
|
29
|
+
|
27
30
|
# vim: syntax=ruby
|
@@ -6,8 +6,15 @@ require "minitest/metadata"
|
|
6
6
|
|
7
7
|
module Capybara
|
8
8
|
module Rails
|
9
|
-
class
|
9
|
+
class Helpers # :nodoc:
|
10
10
|
include ::Rails.application.routes.url_helpers
|
11
|
+
include ::Rails.application.routes.mounted_helpers if ::Rails.application.routes.respond_to? :mounted_helpers
|
12
|
+
def initialize
|
13
|
+
self.default_url_options = ::Rails.application.routes.default_url_options
|
14
|
+
self.default_url_options[:host] ||= "test.local"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
class TestCase < ::ActiveSupport::TestCase
|
11
18
|
include Capybara::DSL
|
12
19
|
include Capybara::Assertions
|
13
20
|
include MiniTest::Metadata
|
@@ -33,6 +40,21 @@ module Capybara
|
|
33
40
|
Capybara.reset_sessions!
|
34
41
|
Capybara.use_default_driver
|
35
42
|
end
|
43
|
+
|
44
|
+
# Defer rails helpers methods to a different object
|
45
|
+
def __rails_helpers__ # :nodoc:
|
46
|
+
@__rails_helpers__ ||= ::Capybara::Rails::Helpers.new
|
47
|
+
end
|
48
|
+
def respond_to?(method, include_private = false) # :nodoc:
|
49
|
+
__rails_helpers__.respond_to?(method, include_private) || super
|
50
|
+
end
|
51
|
+
def method_missing(sym, *args, &block) # :nodoc:
|
52
|
+
if __rails_helpers__.respond_to?(sym, true)
|
53
|
+
__rails_helpers__.__send__(sym, *args, &block)
|
54
|
+
else
|
55
|
+
super
|
56
|
+
end
|
57
|
+
end
|
36
58
|
end
|
37
59
|
end
|
38
60
|
end
|
@@ -45,103 +67,6 @@ end
|
|
45
67
|
|
46
68
|
module Capybara
|
47
69
|
module Assertions
|
48
|
-
def assert_have_button(*args) #:nodoc:
|
49
|
-
ActiveSupport::Deprecation.warn "assert_have_button is deprecated. Please use assert_button instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
50
|
-
assert_button(*args)
|
51
|
-
end
|
52
|
-
def assert_have_checked_field(*args) #:nodoc:
|
53
|
-
ActiveSupport::Deprecation.warn "assert_have_checked_field is deprecated. Please use assert_checked_field instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
54
|
-
assert_checked_field(*args)
|
55
|
-
end
|
56
|
-
def assert_have_content(*args) #:nodoc:
|
57
|
-
ActiveSupport::Deprecation.warn "assert_have_content is deprecated. Please use assert_content instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
58
|
-
assert_content(*args)
|
59
|
-
end
|
60
|
-
def assert_have_css(*args) #:nodoc:
|
61
|
-
ActiveSupport::Deprecation.warn "assert_have_css is deprecated. Please use assert_css instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
62
|
-
assert_css(*args)
|
63
|
-
end
|
64
|
-
def assert_have_field(*args) #:nodoc:
|
65
|
-
ActiveSupport::Deprecation.warn "assert_have_field is deprecated. Please use assert_field instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
66
|
-
assert_field(*args)
|
67
|
-
end
|
68
|
-
def assert_have_link(*args) #:nodoc:
|
69
|
-
ActiveSupport::Deprecation.warn "assert_have_link is deprecated. Please use assert_link instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
70
|
-
assert_link(*args)
|
71
|
-
end
|
72
|
-
def assert_have_select(*args) #:nodoc:
|
73
|
-
ActiveSupport::Deprecation.warn "assert_have_select is deprecated. Please use assert_select instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
74
|
-
assert_select(*args)
|
75
|
-
end
|
76
|
-
def assert_have_selector(*args) #:nodoc:
|
77
|
-
ActiveSupport::Deprecation.warn "assert_have_selector is deprecated. Please use assert_selector instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
78
|
-
assert_selector(*args)
|
79
|
-
end
|
80
|
-
def assert_have_table(*args) #:nodoc:
|
81
|
-
ActiveSupport::Deprecation.warn "assert_have_table is deprecated. Please use assert_table instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
82
|
-
assert_table(*args)
|
83
|
-
end
|
84
|
-
def assert_have_text(*args) #:nodoc:
|
85
|
-
ActiveSupport::Deprecation.warn "assert_have_text is deprecated. Please use assert_text instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
86
|
-
assert_text(*args)
|
87
|
-
end
|
88
|
-
def assert_have_unchecked_field(*args) #:nodoc:
|
89
|
-
ActiveSupport::Deprecation.warn "assert_have_unchecked_field is deprecated. Please use assert_unchecked_field instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
90
|
-
assert_unchecked_field(*args)
|
91
|
-
end
|
92
|
-
def assert_have_xpath(*args) #:nodoc:
|
93
|
-
ActiveSupport::Deprecation.warn "assert_have_xpath is deprecated. Please use assert_xpath instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
94
|
-
assert_xpath(*args)
|
95
|
-
end
|
96
|
-
def refute_have_button(*args) #:nodoc:
|
97
|
-
ActiveSupport::Deprecation.warn "refute_have_button is deprecated. Please use refute_button instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
98
|
-
refute_button(*args)
|
99
|
-
end
|
100
|
-
def refute_have_checked_field(*args) #:nodoc:
|
101
|
-
ActiveSupport::Deprecation.warn "refute_have_checked_field is deprecated. Please use refute_checked_field instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
102
|
-
refute_checked_field(*args)
|
103
|
-
end
|
104
|
-
def refute_have_content(*args) #:nodoc:
|
105
|
-
ActiveSupport::Deprecation.warn "refute_have_content is deprecated. Please use refute_content instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
106
|
-
refute_content(*args)
|
107
|
-
end
|
108
|
-
def refute_have_css(*args) #:nodoc:
|
109
|
-
ActiveSupport::Deprecation.warn "refute_have_css is deprecated. Please use refute_css instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
110
|
-
refute_css(*args)
|
111
|
-
end
|
112
|
-
def refute_have_field(*args) #:nodoc:
|
113
|
-
ActiveSupport::Deprecation.warn "refute_have_field is deprecated. Please use refute_field instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
114
|
-
refute_field(*args)
|
115
|
-
end
|
116
|
-
def refute_have_link(*args) #:nodoc:
|
117
|
-
ActiveSupport::Deprecation.warn "refute_have_link is deprecated. Please use refute_link instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
118
|
-
refute_link(*args)
|
119
|
-
end
|
120
|
-
def refute_have_select(*args) #:nodoc:
|
121
|
-
ActiveSupport::Deprecation.warn "refute_have_select is deprecated. Please use refute_select instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
122
|
-
refute_select(*args)
|
123
|
-
end
|
124
|
-
def refute_have_selector(*args) #:nodoc:
|
125
|
-
ActiveSupport::Deprecation.warn "refute_have_selector is deprecated. Please use refute_selector instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
126
|
-
refute_selector(*args)
|
127
|
-
end
|
128
|
-
def refute_have_table(*args) #:nodoc:
|
129
|
-
ActiveSupport::Deprecation.warn "refute_have_table is deprecated. Please use refute_table instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
130
|
-
refute_table(*args)
|
131
|
-
end
|
132
|
-
def refute_have_text(*args) #:nodoc:
|
133
|
-
ActiveSupport::Deprecation.warn "refute_have_text is deprecated. Please use refute_text instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
134
|
-
refute_text(*args)
|
135
|
-
end
|
136
|
-
def refute_have_unchecked_field(*args) #:nodoc:
|
137
|
-
ActiveSupport::Deprecation.warn "refute_have_unchecked_field is deprecated. Please use refute_unchecked_field instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
138
|
-
refute_unchecked_field(*args)
|
139
|
-
end
|
140
|
-
def refute_have_xpath(*args) #:nodoc:
|
141
|
-
ActiveSupport::Deprecation.warn "refute_have_xpath is deprecated. Please use refute_xpath instead. This method will be removed when minitest-rails-capybara reaches 1.0 release."
|
142
|
-
refute_xpath(*args)
|
143
|
-
end
|
144
|
-
|
145
70
|
##
|
146
71
|
# Assertion that there is button
|
147
72
|
#
|
@@ -1,21 +1,22 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
# stub: minitest-rails-capybara 1.0.0.20140414101711 ruby lib
|
2
3
|
|
3
4
|
Gem::Specification.new do |s|
|
4
5
|
s.name = "minitest-rails-capybara"
|
5
|
-
s.version = "0.
|
6
|
+
s.version = "1.0.0.20140414101711"
|
6
7
|
|
7
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.require_paths = ["lib"]
|
8
10
|
s.authors = ["Mike Moore"]
|
9
|
-
s.date = "
|
11
|
+
s.date = "2014-04-14"
|
10
12
|
s.description = "Adds Capybara feature tests in MiniTest and Rails."
|
11
13
|
s.email = ["mike@blowmage.com"]
|
12
14
|
s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
|
13
|
-
s.files = [".autotest", ".gemtest", "CHANGELOG.rdoc", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "lib/generators/mini_test/feature/feature_generator.rb", "lib/generators/mini_test/feature/templates/feature_spec.rb", "lib/generators/mini_test/feature/templates/feature_test.rb", "lib/minitest-rails-capybara.rb", "lib/minitest/rails/capybara.rb", "minitest-rails-capybara.gemspec", "test/rails_helper.rb", "test/test_assertions_expectation.rb", "test/test_dsl.rb", "test/test_sanity.rb", "test/test_spec.rb"]
|
15
|
+
s.files = [".autotest", ".gemtest", ".travis.yml", "CHANGELOG.rdoc", "Gemfile", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "gemfiles/3.0.gemfile", "gemfiles/3.1.gemfile", "gemfiles/3.2.gemfile", "gemfiles/4.0.gemfile", "lib/generators/mini_test/feature/feature_generator.rb", "lib/generators/mini_test/feature/templates/feature_spec.rb", "lib/generators/mini_test/feature/templates/feature_test.rb", "lib/minitest-rails-capybara.rb", "lib/minitest/rails/capybara.rb", "minitest-rails-capybara.gemspec", "tasks/test.rake", "test/rails_helper.rb", "test/test_assertions_expectation.rb", "test/test_dsl.rb", "test/test_sanity.rb", "test/test_spec.rb"]
|
14
16
|
s.homepage = "http://blowmage.com/minitest-rails-capybara"
|
17
|
+
s.licenses = ["MIT"]
|
15
18
|
s.rdoc_options = ["--main", "README.rdoc"]
|
16
|
-
s.
|
17
|
-
s.rubyforge_project = "minitest-rails-capybara"
|
18
|
-
s.rubygems_version = "2.0.5"
|
19
|
+
s.rubygems_version = "2.2.2"
|
19
20
|
s.summary = "Capybara integration for MiniTest and Rails"
|
20
21
|
s.test_files = ["test/test_assertions_expectation.rb", "test/test_dsl.rb", "test/test_sanity.rb", "test/test_spec.rb"]
|
21
22
|
|
@@ -23,26 +24,26 @@ Gem::Specification.new do |s|
|
|
23
24
|
s.specification_version = 4
|
24
25
|
|
25
26
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<minitest-rails>, ["~> 0
|
27
|
+
s.add_runtime_dependency(%q<minitest-rails>, ["~> 1.0"])
|
27
28
|
s.add_runtime_dependency(%q<capybara>, ["~> 2.0"])
|
28
|
-
s.add_runtime_dependency(%q<minitest-capybara>, ["~> 0.
|
29
|
-
s.add_runtime_dependency(%q<minitest-metadata>, ["~> 0.
|
29
|
+
s.add_runtime_dependency(%q<minitest-capybara>, ["~> 0.5.0"])
|
30
|
+
s.add_runtime_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
|
30
31
|
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
31
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.
|
32
|
+
s.add_development_dependency(%q<hoe>, ["~> 3.11"])
|
32
33
|
else
|
33
|
-
s.add_dependency(%q<minitest-rails>, ["~> 0
|
34
|
+
s.add_dependency(%q<minitest-rails>, ["~> 1.0"])
|
34
35
|
s.add_dependency(%q<capybara>, ["~> 2.0"])
|
35
|
-
s.add_dependency(%q<minitest-capybara>, ["~> 0.
|
36
|
-
s.add_dependency(%q<minitest-metadata>, ["~> 0.
|
36
|
+
s.add_dependency(%q<minitest-capybara>, ["~> 0.5.0"])
|
37
|
+
s.add_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
|
37
38
|
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
38
|
-
s.add_dependency(%q<hoe>, ["~> 3.
|
39
|
+
s.add_dependency(%q<hoe>, ["~> 3.11"])
|
39
40
|
end
|
40
41
|
else
|
41
|
-
s.add_dependency(%q<minitest-rails>, ["~> 0
|
42
|
+
s.add_dependency(%q<minitest-rails>, ["~> 1.0"])
|
42
43
|
s.add_dependency(%q<capybara>, ["~> 2.0"])
|
43
|
-
s.add_dependency(%q<minitest-capybara>, ["~> 0.
|
44
|
-
s.add_dependency(%q<minitest-metadata>, ["~> 0.
|
44
|
+
s.add_dependency(%q<minitest-capybara>, ["~> 0.5.0"])
|
45
|
+
s.add_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
|
45
46
|
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
46
|
-
s.add_dependency(%q<hoe>, ["~> 3.
|
47
|
+
s.add_dependency(%q<hoe>, ["~> 3.11"])
|
47
48
|
end
|
48
49
|
end
|
data/tasks/test.rake
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
namespace :test do
|
2
|
+
desc "Run tests for Rails 4.0"
|
3
|
+
task "4.0" do
|
4
|
+
sh "rm -f Gemfile.lock"
|
5
|
+
ENV["RAILS_VERSION"] = "4.0"
|
6
|
+
sh "bundle && bundle exec rake test"
|
7
|
+
sh "rm -f Gemfile.lock"
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "Run tests for Rails 3.2"
|
11
|
+
task "3.2" do
|
12
|
+
sh "rm -f Gemfile.lock"
|
13
|
+
ENV["RAILS_VERSION"] = "3.2"
|
14
|
+
sh "bundle && bundle exec rake test"
|
15
|
+
sh "rm -f Gemfile.lock"
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Run tests for Rails 3.1"
|
19
|
+
task "3.1" do
|
20
|
+
sh "rm -f Gemfile.lock"
|
21
|
+
ENV["RAILS_VERSION"] = "3.1"
|
22
|
+
sh "bundle && bundle exec rake test"
|
23
|
+
sh "rm -f Gemfile.lock"
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "Run tests for Rails 3.0"
|
27
|
+
task "3.0" do
|
28
|
+
sh "rm -f Gemfile.lock"
|
29
|
+
ENV["RAILS_VERSION"] = "3.0"
|
30
|
+
sh "bundle && bundle exec rake test"
|
31
|
+
sh "rm -f Gemfile.lock"
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Run tests for all Rails versions"
|
35
|
+
task "all" do
|
36
|
+
sh "rake test:4.0"
|
37
|
+
sh "rake test:3.2"
|
38
|
+
sh "rake test:3.1"
|
39
|
+
sh "rake test:3.0"
|
40
|
+
end
|
41
|
+
end
|
metadata
CHANGED
@@ -1,99 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-rails-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.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:
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest-rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '1.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
|
-
version: 0
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.0'
|
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
40
|
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest-capybara
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.5.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest-metadata
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.5.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.5.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '4.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '4.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: hoe
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
89
|
+
version: '3.11'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '3.
|
96
|
+
version: '3.11'
|
97
97
|
description: Adds Capybara feature tests in MiniTest and Rails.
|
98
98
|
email:
|
99
99
|
- mike@blowmage.com
|
@@ -104,46 +104,54 @@ extra_rdoc_files:
|
|
104
104
|
- Manifest.txt
|
105
105
|
- README.rdoc
|
106
106
|
files:
|
107
|
-
- .autotest
|
108
|
-
- .gemtest
|
107
|
+
- ".autotest"
|
108
|
+
- ".gemtest"
|
109
|
+
- ".travis.yml"
|
109
110
|
- CHANGELOG.rdoc
|
111
|
+
- Gemfile
|
110
112
|
- LICENSE
|
111
113
|
- Manifest.txt
|
112
114
|
- README.rdoc
|
113
115
|
- Rakefile
|
116
|
+
- gemfiles/3.0.gemfile
|
117
|
+
- gemfiles/3.1.gemfile
|
118
|
+
- gemfiles/3.2.gemfile
|
119
|
+
- gemfiles/4.0.gemfile
|
114
120
|
- lib/generators/mini_test/feature/feature_generator.rb
|
115
121
|
- lib/generators/mini_test/feature/templates/feature_spec.rb
|
116
122
|
- lib/generators/mini_test/feature/templates/feature_test.rb
|
117
123
|
- lib/minitest-rails-capybara.rb
|
118
124
|
- lib/minitest/rails/capybara.rb
|
119
125
|
- minitest-rails-capybara.gemspec
|
126
|
+
- tasks/test.rake
|
120
127
|
- test/rails_helper.rb
|
121
128
|
- test/test_assertions_expectation.rb
|
122
129
|
- test/test_dsl.rb
|
123
130
|
- test/test_sanity.rb
|
124
131
|
- test/test_spec.rb
|
125
132
|
homepage: http://blowmage.com/minitest-rails-capybara
|
126
|
-
licenses:
|
133
|
+
licenses:
|
134
|
+
- MIT
|
127
135
|
metadata: {}
|
128
136
|
post_install_message:
|
129
137
|
rdoc_options:
|
130
|
-
- --main
|
138
|
+
- "--main"
|
131
139
|
- README.rdoc
|
132
140
|
require_paths:
|
133
141
|
- lib
|
134
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
143
|
requirements:
|
136
|
-
- -
|
144
|
+
- - ">="
|
137
145
|
- !ruby/object:Gem::Version
|
138
146
|
version: '0'
|
139
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
148
|
requirements:
|
141
|
-
- -
|
149
|
+
- - ">="
|
142
150
|
- !ruby/object:Gem::Version
|
143
151
|
version: '0'
|
144
152
|
requirements: []
|
145
|
-
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
153
|
+
rubyforge_project:
|
154
|
+
rubygems_version: 2.2.2
|
147
155
|
signing_key:
|
148
156
|
specification_version: 4
|
149
157
|
summary: Capybara integration for MiniTest and Rails
|