minitest-rails-capybara 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Mike Moore
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Manifest.txt CHANGED
@@ -1,9 +1,11 @@
1
1
  .autotest
2
2
  .gemtest
3
3
  CHANGELOG.rdoc
4
+ LICENSE
4
5
  Manifest.txt
5
6
  README.rdoc
6
7
  Rakefile
8
+ lib/minitest-rails-capybara.rb
7
9
  lib/minitest/rails/capybara.rb
8
10
  minitest-rails-capybara.gemspec
9
11
  test/test_minitest_rails_capybara.rb
data/README.rdoc CHANGED
@@ -1,57 +1,59 @@
1
1
  = minitest-rails-capybara
2
2
 
3
- * FIX (url)
3
+ Capybara integration for MiniTest::Rails.
4
4
 
5
- == DESCRIPTION:
5
+ == Install
6
6
 
7
- FIX (describe your package)
7
+ gem install minitest-rails-capybara
8
8
 
9
- == FEATURES/PROBLEMS:
9
+ This installs the following gems:
10
10
 
11
- * FIX (list of features or problems)
11
+ minitest
12
+ minitest-rails
13
+ capybara
12
14
 
13
- == SYNOPSIS:
15
+ == Configure
14
16
 
15
- FIX (code sample of usage)
17
+ Follow the instructions to configure <tt>minitest-rails</tt>. Then add <tt>minitest-rails-capybara</tt> to the <tt>:test</tt> and <tt>:development</tt> groups in Gemfile:
16
18
 
17
- == REQUIREMENTS:
19
+ group :test, :development do
20
+ gem 'minitest-rails'
21
+ gem 'minitest-rails-capybara'
22
+ end
18
23
 
19
- * FIX (list of requirements)
24
+ Add the following to your <tt>minitest_helper.rb</tt> file to the <tt>test</tt> directory.
20
25
 
21
- == INSTALL:
26
+ require "minitest/rails/capybara"
22
27
 
23
- * FIX (sudo gem install, anything else)
28
+ == Usage
24
29
 
25
- == DEVELOPERS:
30
+ Generate a new acceptance test using the default generator:
26
31
 
27
- After checking out the source, run:
32
+ rails generate integration_test CanAccessHome
28
33
 
29
- $ rake newb
34
+ And you can specify use of the MiniTest::Spec DSL by providing the <tt>--spec</tt> option:
30
35
 
31
- This task will install any missing dependencies, run the tests/specs,
32
- and generate the RDoc.
36
+ rails generate integration_test CanAccessHome --spec
33
37
 
34
- == LICENSE:
38
+ You can now use Capybara in your acceptance tests!
35
39
 
36
- (The MIT License)
40
+ require "minitest_helper"
41
+
42
+ class CanAccessHomeTest < MiniTest::Rails::ActionDispatch::IntegrationTest
43
+ test "the homepage has content" do
44
+ visit root_path
45
+ assert page.has_content?("Home#index")
46
+ end
47
+ end
37
48
 
38
- Copyright (c) 2012 FIX
49
+ == Get Involved
39
50
 
40
- Permission is hereby granted, free of charge, to any person obtaining
41
- a copy of this software and associated documentation files (the
42
- 'Software'), to deal in the Software without restriction, including
43
- without limitation the rights to use, copy, modify, merge, publish,
44
- distribute, sublicense, and/or sell copies of the Software, and to
45
- permit persons to whom the Software is furnished to do so, subject to
46
- the following conditions:
51
+ Join the mailing list to get help or offer suggestions.
47
52
 
48
- The above copyright notice and this permission notice shall be
49
- included in all copies or substantial portions of the Software.
53
+ https://groups.google.com/group/minitest-rails
50
54
 
51
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
52
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
53
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
54
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
55
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
56
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
57
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55
+ == License
56
+
57
+ Copyright © 2012 Mike Moore.
58
+
59
+ Released under the MIT license. See `LICENSE` for details.
@@ -0,0 +1,3 @@
1
+ module Minitest::Rails::Capybara
2
+ VERSION = '0.0.2'
3
+ end
@@ -1,10 +1,6 @@
1
1
  require "minitest/rails"
2
2
  require "capybara/rails"
3
3
 
4
- class Minitest::Rails::Capybara
5
- VERSION = '0.0.1'
6
- end
7
-
8
4
  class MiniTest::Rails::ActionDispatch::IntegrationTest
9
5
  include Rails.application.routes.url_helpers
10
6
  include Capybara::DSL
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "minitest-rails-capybara"
5
- s.version = "0.0.1.20120707121836"
5
+ s.version = "0.0.2.20120709105721"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mike Moore"]
9
- s.date = "2012-07-07"
9
+ s.date = "2012-07-09"
10
10
  s.description = "Adds Capybara to acceptance tests in Minitest::Rails."
11
11
  s.email = ["mike@blowmage.com"]
12
12
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
13
- s.files = [".autotest", ".gemtest", "CHANGELOG.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "lib/minitest/rails/capybara.rb", "minitest-rails-capybara.gemspec", "test/test_minitest_rails_capybara.rb"]
13
+ s.files = [".autotest", ".gemtest", "CHANGELOG.rdoc", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "lib/minitest-rails-capybara.rb", "lib/minitest/rails/capybara.rb", "minitest-rails-capybara.gemspec", "test/test_minitest_rails_capybara.rb"]
14
14
  s.homepage = "http://blowmage.com/minitest-rails-capybara"
15
15
  s.rdoc_options = ["--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = "minitest-rails-capybara"
18
- s.rubygems_version = "1.8.16"
18
+ s.rubygems_version = "1.8.24"
19
19
  s.summary = "Capybara integration for MiniTest::Rails."
20
20
  s.test_files = ["test/test_minitest_rails_capybara.rb"]
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails-capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-07 00:00:00.000000000 Z
12
+ date: 2012-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest-rails
16
- requirement: &70168858107760 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70168858107760
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: capybara
27
- requirement: &70168858115240 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70168858115240
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rdoc
38
- requirement: &70168858114560 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '3.10'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70168858114560
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.10'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: hoe
49
- requirement: &70168858113900 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '3.0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70168858113900
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '3.0'
58
78
  description: Adds Capybara to acceptance tests in Minitest::Rails.
59
79
  email:
60
80
  - mike@blowmage.com
@@ -68,9 +88,11 @@ files:
68
88
  - .autotest
69
89
  - .gemtest
70
90
  - CHANGELOG.rdoc
91
+ - LICENSE
71
92
  - Manifest.txt
72
93
  - README.rdoc
73
94
  - Rakefile
95
+ - lib/minitest-rails-capybara.rb
74
96
  - lib/minitest/rails/capybara.rb
75
97
  - minitest-rails-capybara.gemspec
76
98
  - test/test_minitest_rails_capybara.rb
@@ -96,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
118
  version: '0'
97
119
  requirements: []
98
120
  rubyforge_project: minitest-rails-capybara
99
- rubygems_version: 1.8.16
121
+ rubygems_version: 1.8.24
100
122
  signing_key:
101
123
  specification_version: 3
102
124
  summary: Capybara integration for MiniTest::Rails.