minitest-capybara 0.6.0.rc1 → 0.6.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 +4 -2
- data/Gemfile.lock +1 -1
- data/README.md +13 -3
- data/VERSION +1 -1
- data/lib/minitest-capybara.rb +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90902280c08889590f5bc26ce3eff2f9a2ad0ac
|
4
|
+
data.tar.gz: 9b084a9ee70642816d98368598ce796b22580dc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa7385b82b0a0e2d2e118adf91b9228713c71a67d45010c434d4dbe2fb6903df15fb8289a953f5f598f369af80574e88ed9b9a5efc2deb187a758cbbba58c255
|
7
|
+
data.tar.gz: 34c5cfab326564e2bc5a83abe4c0f2df85c59ab21613b847ac127daca6b4eb3bc34486dc8aa313cf6e056bab3b824535389886b6071d357d2cdee5e9b2d75d08
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,6 +21,10 @@ but:
|
|
21
21
|
|
22
22
|
With this project minitest gets all the good stuff.
|
23
23
|
|
24
|
+
## Rails integration
|
25
|
+
|
26
|
+
Check out [minitest-rails-capybara](https://github.com/blowmage/minitest-rails-capybara)
|
27
|
+
|
24
28
|
## Usage
|
25
29
|
|
26
30
|
See example app: https://github.com/wojtekmach/minitest-capybara-example
|
@@ -58,7 +62,7 @@ Or if you prefer to create seperate test class for acceptance tests.
|
|
58
62
|
require "capybara/rails"
|
59
63
|
|
60
64
|
# for just minitest/unit
|
61
|
-
class AcceptanceTest < Minitest::
|
65
|
+
class AcceptanceTest < Minitest::Test
|
62
66
|
include Capybara::DSL
|
63
67
|
include Capybara::Assertions
|
64
68
|
|
@@ -69,8 +73,14 @@ class AcceptanceTest < Minitest::Unit::TestCase
|
|
69
73
|
end
|
70
74
|
|
71
75
|
# for minitest/spec
|
72
|
-
class AcceptanceSpec <
|
73
|
-
|
76
|
+
class AcceptanceSpec < Minitest::Spec
|
77
|
+
include Capybara::DSL
|
78
|
+
include Capybara::Assertions
|
79
|
+
|
80
|
+
def teardown
|
81
|
+
Capybara.reset_session!
|
82
|
+
Capybara.use_default_driver
|
83
|
+
end
|
74
84
|
end
|
75
85
|
```
|
76
86
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.0
|
1
|
+
0.6.0
|
data/lib/minitest-capybara.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wojciech Mach
|
@@ -99,9 +99,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project: minitest-capybara
|
107
107
|
rubygems_version: 2.2.2
|