minitest-rails-capybara 3.0.0.rc1 → 3.0.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 -1
- data/README.rdoc +11 -19
- data/Rakefile +1 -1
- data/gemfiles/5.0.gemfile +1 -1
- data/lib/minitest-rails-capybara.rb +1 -1
- data/minitest-rails-capybara.gemspec +7 -7
- data/tasks/test.rake +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9066ad6e4be5edae75ccbd1ea2994518dee6492f
|
4
|
+
data.tar.gz: 3bd72f7387afd918f1f9e7ef45e086364f2fcc85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65fcec2fc44d51a78719d96fe501aafe8f66ec52c4634d49a23b231061b27ab21e2a701938869889bcf7bf3dfc32df94fcd56506ccea228161f56834c7e614d
|
7
|
+
data.tar.gz: 252b24212c46bbe25a5ebb65f52e719810ca35239ec531648dd9a83c0c6187eb847f6348258086f7241b03aa29e02213f61fa6d7125054382be02c23de45333a
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 3.0.0 / 2016-07-01
|
2
|
+
|
3
|
+
* Support Rails 5
|
4
|
+
|
5
|
+
* The spec DSL is now default.
|
6
|
+
|
7
|
+
https://github.com/blowmage/minitest-rails-capybara/compare/v2.1.1...v3.0.0
|
8
|
+
|
1
9
|
=== 2.1.1 / 2014-07-08
|
2
10
|
|
3
11
|
* Fix bug with Capybara's DSL
|
@@ -80,4 +88,3 @@ https://github.com/blowmage/minitest-rails-capybara/compare/v0.0.1...v0.0.2
|
|
80
88
|
* 1 major enhancement
|
81
89
|
|
82
90
|
* Birthday!
|
83
|
-
|
data/README.rdoc
CHANGED
@@ -41,26 +41,26 @@ To generate these feature tests, you can use the feature generator:
|
|
41
41
|
You can now use Capybara in your feature tests!
|
42
42
|
|
43
43
|
require "test_helper"
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
|
45
|
+
feature "Can Access Home" do
|
46
|
+
scenario "has content" do
|
47
47
|
visit root_path
|
48
|
-
|
48
|
+
page.must_have_content "Home#index"
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
Or you can
|
52
|
+
Or you can opt-out of the Capybara's spec DSL by providing the <tt>--no-spec</tt> option:
|
53
53
|
|
54
|
-
rails generate minitest:feature CanAccessHome --spec
|
54
|
+
rails generate minitest:feature CanAccessHome --no-spec
|
55
55
|
|
56
56
|
Which will generate a feature test using the Capybara spec DSL:
|
57
57
|
|
58
58
|
require "test_helper"
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
|
60
|
+
class CanAccessHomeTest < Capybara::Rails::TestCase
|
61
|
+
def test_homepage_has_content
|
62
62
|
visit root_path
|
63
|
-
page.
|
63
|
+
assert page.has_content?("Home#index")
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -99,15 +99,7 @@ https://github.com/wojtekmach/minitest-metadata
|
|
99
99
|
|
100
100
|
== Running Tests
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
Rails::TestTask.new("test:features" => "test:prepare") do |t|
|
105
|
-
t.pattern = "test/features/**/*_test.rb"
|
106
|
-
end
|
107
|
-
|
108
|
-
If you want your new task to be run when you run <tt>rake test</tt>, also add the following:
|
109
|
-
|
110
|
-
Rake::Task["test:run"].enhance ["test:features"]
|
102
|
+
To run your tests use the <tt>rails test</tt> that ship with rails.
|
111
103
|
|
112
104
|
== Get Involved
|
113
105
|
|
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", "
|
22
|
+
dependency "minitest-rails", "~> 3.0"
|
23
23
|
dependency "capybara", "~> 2.7"
|
24
24
|
dependency "minitest-capybara", "~> 0.8"
|
25
25
|
dependency "minitest-metadata", "~> 0.6"
|
data/gemfiles/5.0.gemfile
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: minitest-rails-capybara 3.0.0.
|
2
|
+
# stub: minitest-rails-capybara 3.0.0.20160701091723 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "minitest-rails-capybara".freeze
|
6
|
-
s.version = "3.0.0.
|
6
|
+
s.version = "3.0.0.20160701091723"
|
7
7
|
|
8
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Mike Moore".freeze]
|
11
|
-
s.date = "2016-
|
11
|
+
s.date = "2016-07-01"
|
12
12
|
s.description = "Adds Capybara feature tests in Minitest and Rails.".freeze
|
13
13
|
s.email = ["mike@blowmage.com".freeze]
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG.rdoc".freeze, "Manifest.txt".freeze, "README.rdoc".freeze]
|
@@ -23,14 +23,14 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.specification_version = 4
|
24
24
|
|
25
25
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<minitest-rails>.freeze, ["
|
26
|
+
s.add_runtime_dependency(%q<minitest-rails>.freeze, ["~> 3.0"])
|
27
27
|
s.add_runtime_dependency(%q<capybara>.freeze, ["~> 2.7"])
|
28
28
|
s.add_runtime_dependency(%q<minitest-capybara>.freeze, ["~> 0.8"])
|
29
29
|
s.add_runtime_dependency(%q<minitest-metadata>.freeze, ["~> 0.6"])
|
30
30
|
s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.0"])
|
31
31
|
s.add_development_dependency(%q<hoe>.freeze, ["~> 3.15"])
|
32
32
|
else
|
33
|
-
s.add_dependency(%q<minitest-rails>.freeze, ["
|
33
|
+
s.add_dependency(%q<minitest-rails>.freeze, ["~> 3.0"])
|
34
34
|
s.add_dependency(%q<capybara>.freeze, ["~> 2.7"])
|
35
35
|
s.add_dependency(%q<minitest-capybara>.freeze, ["~> 0.8"])
|
36
36
|
s.add_dependency(%q<minitest-metadata>.freeze, ["~> 0.6"])
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.add_dependency(%q<hoe>.freeze, ["~> 3.15"])
|
39
39
|
end
|
40
40
|
else
|
41
|
-
s.add_dependency(%q<minitest-rails>.freeze, ["
|
41
|
+
s.add_dependency(%q<minitest-rails>.freeze, ["~> 3.0"])
|
42
42
|
s.add_dependency(%q<capybara>.freeze, ["~> 2.7"])
|
43
43
|
s.add_dependency(%q<minitest-capybara>.freeze, ["~> 0.8"])
|
44
44
|
s.add_dependency(%q<minitest-metadata>.freeze, ["~> 0.6"])
|
data/tasks/test.rake
CHANGED
@@ -2,7 +2,7 @@ namespace :test do
|
|
2
2
|
desc "Run tests for Rails 5.0"
|
3
3
|
task "5.0" do
|
4
4
|
sh "rm -f Gemfile.lock"
|
5
|
-
ENV["RAILS_VERSION"] = "
|
5
|
+
ENV["RAILS_VERSION"] = "5.0"
|
6
6
|
sh "bundle && bundle exec rake test"
|
7
7
|
sh "rm -f Gemfile.lock"
|
8
8
|
end
|
@@ -10,7 +10,7 @@ namespace :test do
|
|
10
10
|
desc "Run tests for Rails head"
|
11
11
|
task "head" do
|
12
12
|
sh "rm -f Gemfile.lock"
|
13
|
-
ENV["RAILS_VERSION"] = "
|
13
|
+
ENV["RAILS_VERSION"] = "head"
|
14
14
|
sh "bundle && bundle exec rake test"
|
15
15
|
sh "rm -f Gemfile.lock"
|
16
16
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-rails-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
4
|
+
version: 3.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: 2016-
|
11
|
+
date: 2016-07-01 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: 3.0
|
19
|
+
version: '3.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: 3.0
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,9 +145,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- - "
|
148
|
+
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
150
|
+
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
153
|
rubygems_version: 2.6.4
|