minitest-rails-capybara 2.1.2 → 3.0.0.rc1

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: 1049603d7867666946ed433c24da47c8d69aa047
4
- data.tar.gz: 59ab135fd89cac280ec312f751ef219f22f0b1e0
3
+ metadata.gz: caf45085879793be20a87ba2355a98fd9643d505
4
+ data.tar.gz: f1fd4f0f78b9f3cc0c0e19021048940f2f6f85e2
5
5
  SHA512:
6
- metadata.gz: 59b8c54312fc9ce91f2892bda8bbfdb56156498dd5a824f856c48b0bef2c40cf96510ec836574b07b92b1a3f3c3241726ff1f94fbe21fe9f61a851eeeccf5034
7
- data.tar.gz: 91ac71a9a2fec3af5b910f274c2ec5e2af24ef018787733faf0a72a2ebf6f2838ef0c05b1d69bb13209cc7dd20e88d19490b3aaf7cf4cf922b1974a3a2fd8281
6
+ metadata.gz: 28d39d02e5e735278247cc014932ac873fd0e297a0bd86877f29fa0a5cc1af443b37a919756f06064ef87dd56bf4ff32dc327f874c93d265074776f65d9934da
7
+ data.tar.gz: 53378ee9e3bb74a84b5fbb9ba12d857c43657691636fc3c58883f6bced28ac22279f1033fd7cdccb0592c5fb4d56eaaaa1f66940f55b48ec0d02a4f448fceb0f
data/.travis.yml CHANGED
@@ -2,15 +2,17 @@
2
2
  before_install:
3
3
  - gem update --system
4
4
  - gem --version
5
- - gem update bundler
6
5
  language: ruby
7
6
  notifications:
8
7
  email:
9
8
  - mike@blowmage.com
10
9
  rvm:
11
- - 2.1
12
- - 2.0
13
- - 1.9.3
10
+ - 2.3.1
11
+ - 2.3.0
12
+ - 2.2.4
13
+ - 2.2.3
14
+ - 2.2.2
15
+ - ruby-head
14
16
  env:
15
- - "RAILS_VERSION=4.1"
16
- - "RAILS_VERSION=4.2"
17
+ - "RAILS_VERSION=5.0"
18
+ - "RAILS_VERSION=head"
data/CHANGELOG.rdoc CHANGED
@@ -1,9 +1,3 @@
1
- === 2.1.2 / 2016-05-07
2
-
3
- * Update dependencies (knightq, fbernier)
4
- * Update bundler on TravisCI (RKushnir)
5
- * Fix typo in generated test (switowski)
6
-
7
1
  === 2.1.1 / 2014-07-08
8
2
 
9
3
  * Fix bug with Capybara's DSL
@@ -86,3 +80,4 @@ https://github.com/blowmage/minitest-rails-capybara/compare/v0.0.1...v0.0.2
86
80
  * 1 major enhancement
87
81
 
88
82
  * Birthday!
83
+
data/Gemfile CHANGED
@@ -2,6 +2,6 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- version = ENV["RAILS_VERSION"] || "4.2"
5
+ version = ENV["RAILS_VERSION"] || "5.0"
6
6
 
7
7
  eval_gemfile File.expand_path("../gemfiles/#{version}.gemfile", __FILE__)
data/Manifest.txt CHANGED
@@ -7,8 +7,8 @@ LICENSE
7
7
  Manifest.txt
8
8
  README.rdoc
9
9
  Rakefile
10
- gemfiles/4.1.gemfile
11
- gemfiles/4.2.gemfile
10
+ gemfiles/5.0.gemfile
11
+ gemfiles/head.gemfile
12
12
  lib/generators/minitest/feature/feature_generator.rb
13
13
  lib/generators/minitest/feature/templates/feature_spec.rb
14
14
  lib/generators/minitest/feature/templates/feature_test.rb
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.1"
22
+ dependency "minitest-rails", "= 3.0.0.rc1"
23
23
  dependency "capybara", "~> 2.7"
24
24
  dependency "minitest-capybara", "~> 0.8"
25
25
  dependency "minitest-metadata", "~> 0.6"
@@ -0,0 +1,5 @@
1
+ source "http://rubygems.org" do
2
+ gem "rails", "~> 5.0.0.rc1"
3
+ gem "sqlite3"
4
+ gem "rake"
5
+ end
@@ -0,0 +1,5 @@
1
+ source "http://rubygems.org" do
2
+ gem "rails", github: "rails/rails"
3
+ gem "sqlite3"
4
+ gem "rake"
5
+ end
@@ -6,7 +6,7 @@ module Minitest
6
6
  class FeatureGenerator < Base
7
7
 
8
8
  def self.source_root
9
- @_minitest_capybara_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
9
+ @_minitest_capybara_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), "templates"))
10
10
  end
11
11
 
12
12
  class_option :spec, type: :boolean, default: false, desc: "Use Minitest::Spec DSL"
@@ -15,9 +15,9 @@ module Minitest
15
15
 
16
16
  def create_test_files
17
17
  if options[:spec]
18
- template 'feature_spec.rb', File.join('test/features', class_path, "#{file_name}_test.rb")
18
+ template "feature_spec.rb", File.join("test/features", class_path, "#{file_name}_test.rb")
19
19
  else
20
- template 'feature_test.rb', File.join('test/features', class_path, "#{file_name}_test.rb")
20
+ template "feature_test.rb", File.join("test/features", class_path, "#{file_name}_test.rb")
21
21
  end
22
22
  end
23
23
  end
@@ -1,9 +1,9 @@
1
1
  require "test_helper"
2
2
 
3
3
  feature "<%= class_name %>" do
4
- scenario "the test is sound" do
5
- visit root_path
6
- page.must_have_content "Hello World"
7
- page.wont_have_content "Goodbye All!"
8
- end
4
+ # scenario "the test is sound" do
5
+ # visit root_path
6
+ # page.must_have_content "Hello World"
7
+ # page.wont_have_content "Goodbye All!"
8
+ # end
9
9
  end
@@ -1,9 +1,9 @@
1
1
  require "test_helper"
2
2
 
3
3
  class <%= class_name %>Test < Capybara::Rails::TestCase
4
- test "sanity" do
5
- visit root_path
6
- assert_content page, "Hello World"
7
- refute_content page, "Goodbye All!"
8
- end
4
+ # test "sanity" do
5
+ # visit root_path
6
+ # assert_content page, "Hello World"
7
+ # refute_content page, "Goodbye All!"
8
+ # end
9
9
  end
@@ -3,7 +3,7 @@ require "minitest-rails"
3
3
  module Minitest
4
4
  module Rails
5
5
  module Capybara
6
- VERSION = "2.1.2"
6
+ VERSION = "3.0.0.rc1"
7
7
  end
8
8
  end
9
9
  end
@@ -1,18 +1,18 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: minitest-rails-capybara 2.1.2.20160507195331 ruby lib
2
+ # stub: minitest-rails-capybara 3.0.0.rc1.20160507184752 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "minitest-rails-capybara".freeze
6
- s.version = "2.1.2.20160507195331"
6
+ s.version = "3.0.0.rc1.20160507184752"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
8
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Mike Moore".freeze]
11
11
  s.date = "2016-05-08"
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]
15
- s.files = [".autotest".freeze, ".gemtest".freeze, ".travis.yml".freeze, "CHANGELOG.rdoc".freeze, "Gemfile".freeze, "LICENSE".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "Rakefile".freeze, "gemfiles/4.1.gemfile".freeze, "gemfiles/4.2.gemfile".freeze, "lib/generators/minitest/feature/feature_generator.rb".freeze, "lib/generators/minitest/feature/templates/feature_spec.rb".freeze, "lib/generators/minitest/feature/templates/feature_test.rb".freeze, "lib/minitest-rails-capybara.rb".freeze, "lib/minitest/rails/capybara.rb".freeze, "minitest-rails-capybara.gemspec".freeze, "tasks/test.rake".freeze, "test/rails_helper.rb".freeze, "test/test_assertions_expectation.rb".freeze, "test/test_dsl.rb".freeze, "test/test_sanity.rb".freeze, "test/test_spec.rb".freeze, "test/test_spec_type.rb".freeze]
15
+ s.files = [".autotest".freeze, ".gemtest".freeze, ".travis.yml".freeze, "CHANGELOG.rdoc".freeze, "Gemfile".freeze, "LICENSE".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "Rakefile".freeze, "gemfiles/5.0.gemfile".freeze, "gemfiles/head.gemfile".freeze, "lib/generators/minitest/feature/feature_generator.rb".freeze, "lib/generators/minitest/feature/templates/feature_spec.rb".freeze, "lib/generators/minitest/feature/templates/feature_test.rb".freeze, "lib/minitest-rails-capybara.rb".freeze, "lib/minitest/rails/capybara.rb".freeze, "minitest-rails-capybara.gemspec".freeze, "tasks/test.rake".freeze, "test/rails_helper.rb".freeze, "test/test_assertions_expectation.rb".freeze, "test/test_dsl.rb".freeze, "test/test_sanity.rb".freeze, "test/test_spec.rb".freeze, "test/test_spec_type.rb".freeze]
16
16
  s.homepage = "http://blowmage.com/minitest-rails-capybara".freeze
17
17
  s.licenses = ["MIT".freeze]
18
18
  s.rdoc_options = ["--main".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, ["~> 2.1"])
26
+ s.add_runtime_dependency(%q<minitest-rails>.freeze, ["= 3.0.0.rc1"])
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, ["~> 2.1"])
33
+ s.add_dependency(%q<minitest-rails>.freeze, ["= 3.0.0.rc1"])
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, ["~> 2.1"])
41
+ s.add_dependency(%q<minitest-rails>.freeze, ["= 3.0.0.rc1"])
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
@@ -1,14 +1,14 @@
1
1
  namespace :test do
2
- desc "Run tests for Rails 4.1"
3
- task "4.1" do
2
+ desc "Run tests for Rails 5.0"
3
+ task "5.0" do
4
4
  sh "rm -f Gemfile.lock"
5
5
  ENV["RAILS_VERSION"] = "4.1"
6
6
  sh "bundle && bundle exec rake test"
7
7
  sh "rm -f Gemfile.lock"
8
8
  end
9
9
 
10
- desc "Run tests for Rails 4.2"
11
- task "4.2" do
10
+ desc "Run tests for Rails head"
11
+ task "head" do
12
12
  sh "rm -f Gemfile.lock"
13
13
  ENV["RAILS_VERSION"] = "4.2"
14
14
  sh "bundle && bundle exec rake test"
@@ -17,7 +17,7 @@ namespace :test do
17
17
 
18
18
  desc "Run tests for all Rails versions"
19
19
  task "all" do
20
- sh "rake test:4.1"
21
- sh "rake test:4.2"
20
+ sh "rake test:5.0"
21
+ sh "rake test:head"
22
22
  end
23
23
  end
data/test/rails_helper.rb CHANGED
@@ -1,22 +1,24 @@
1
1
  require "minitest/autorun"
2
+
3
+ require "action_controller"
2
4
  require "action_controller/railtie"
3
5
 
4
6
  class TestApp < Rails::Application
5
7
  config.secret_token = "821c600ece97fc4ba952d67655b4b475"
6
8
  initialize!
7
9
  routes.draw do
8
- root to: 'hello#world'
10
+ root to: "hello#world"
9
11
  end
10
12
  end
11
13
  class HelloController < ActionController::Base
12
14
  def world
13
- render inline: "<!DOCTYPE html><title>TestApp</title>
14
- <h1>Hello <span>World</span></h1>
15
- <nav><ul><li><a href='/'>home</a></li></ul></nav>
16
- <p><label>Email Address<input type='text'></label></p>
17
- <button>random button</button>
18
- <label>going<input type='checkbox' checked='checked'></label>
19
- <label>avoid<input type='checkbox'></label>"
15
+ render html: "<!DOCTYPE html><title>TestApp</title>
16
+ <h1>Hello <span>World</span></h1>
17
+ <nav><ul><li><a href='/'>home</a></li></ul></nav>
18
+ <p><label>Email Address<input type='text'></label></p>
19
+ <button>random button</button>
20
+ <label>going<input type='checkbox' checked='checked'></label>
21
+ <label>avoid<input type='checkbox'></label>".html_safe
20
22
  end
21
23
  end
22
24
 
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: 2.1.2
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -14,16 +14,16 @@ dependencies:
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: '2.1'
19
+ version: 3.0.0.rc1
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.1'
26
+ version: 3.0.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -113,8 +113,8 @@ files:
113
113
  - Manifest.txt
114
114
  - README.rdoc
115
115
  - Rakefile
116
- - gemfiles/4.1.gemfile
117
- - gemfiles/4.2.gemfile
116
+ - gemfiles/5.0.gemfile
117
+ - gemfiles/head.gemfile
118
118
  - lib/generators/minitest/feature/feature_generator.rb
119
119
  - lib/generators/minitest/feature/templates/feature_spec.rb
120
120
  - lib/generators/minitest/feature/templates/feature_test.rb
@@ -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: '0'
150
+ version: 1.3.1
151
151
  requirements: []
152
152
  rubyforge_project:
153
153
  rubygems_version: 2.6.4
data/gemfiles/4.1.gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org" do
2
- gem "rails", "~> 4.1.0"
3
- gem "rake"
4
- gem "mime-types", "< 3.0"
5
- end
data/gemfiles/4.2.gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org" do
2
- gem "rails", "~> 4.2.0"
3
- gem "rake"
4
- gem "mime-types", "< 3.0"
5
- end