minitest-rails-capybara 1.0.0 → 2.0.0.beta1

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: 77f00ff2b7e03e277b777854735fa3920dfd0e67
4
- data.tar.gz: 2f450579745b72a8eb480cdeefaf8419ba59eb85
3
+ metadata.gz: ff6fc8e1a09352d6edc005750923555af0e2e2d3
4
+ data.tar.gz: 1ccfa7ba5b95d65614bdb980216bb36aa1df28cc
5
5
  SHA512:
6
- metadata.gz: 141de8b555fd968b72b43d4b411ae77b796542673c051bff4e45f22fdfc5e8e6efc04dbf55adbb2898b3fdbce5d8881c33b7ddca15bd8f0134515f7a475e5ef8
7
- data.tar.gz: d046180db4a59b6912988dd92a3d47d201d3d4b8442b072ae49fe078bd842a0ffc91f2459de2a1c39c35947a3aeb135563d628658116981a5f52dab6bc2ed8d9
6
+ metadata.gz: fb2998101a63d4246db53e62ebabe4a50da28ae8e4569800584a3025a5977b46161e417c8db3d7bb701a5843f7c81bdbe7d539ba93131292a127bc2e3d3a1e44
7
+ data.tar.gz: b1f7d08395b7814b7098a6d93add66ee591d50fb9610bd1def1892f53acc338160ff04accd30091d2d4235001d0006cb7d2583d57a830d6fe3087f55cfe5b612
data/.travis.yml CHANGED
@@ -13,9 +13,4 @@ rvm:
13
13
  - 1.9.3
14
14
  - 1.8.7
15
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"
16
+ - "RAILS_VERSION=4.1"
data/Gemfile CHANGED
@@ -2,6 +2,6 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- version = ENV["RAILS_VERSION"] || "4.0"
5
+ version = ENV["RAILS_VERSION"] || "4.1"
6
6
 
7
7
  eval_gemfile File.expand_path("../gemfiles/#{version}.gemfile", __FILE__)
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Mike Moore
1
+ Copyright (c) 2014 Mike Moore
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Manifest.txt CHANGED
@@ -7,13 +7,10 @@ LICENSE
7
7
  Manifest.txt
8
8
  README.rdoc
9
9
  Rakefile
10
- gemfiles/3.0.gemfile
11
- gemfiles/3.1.gemfile
12
- gemfiles/3.2.gemfile
13
- gemfiles/4.0.gemfile
14
- lib/generators/mini_test/feature/feature_generator.rb
15
- lib/generators/mini_test/feature/templates/feature_spec.rb
16
- lib/generators/mini_test/feature/templates/feature_test.rb
10
+ gemfiles/4.1.gemfile
11
+ lib/generators/minitest/feature/feature_generator.rb
12
+ lib/generators/minitest/feature/templates/feature_spec.rb
13
+ lib/generators/minitest/feature/templates/feature_test.rb
17
14
  lib/minitest-rails-capybara.rb
18
15
  lib/minitest/rails/capybara.rb
19
16
  minitest-rails-capybara.gemspec
@@ -23,3 +20,4 @@ test/test_assertions_expectation.rb
23
20
  test/test_dsl.rb
24
21
  test/test_sanity.rb
25
22
  test/test_spec.rb
23
+ test/test_spec_type.rb
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = minitest-rails-capybara
2
2
 
3
- Capybara integration for MiniTest and Rails.
3
+ Capybara integration for Minitest and Rails.
4
4
 
5
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
6
  {<img src="https://codeclimate.com/github/blowmage/minitest-rails-capybara.png" />}[https://codeclimate.com/github/blowmage/minitest-rails-capybara]
@@ -36,7 +36,7 @@ Capybara is intended to be used for automating a browser to test your applicatio
36
36
 
37
37
  To generate these feature tests, you can use the feature generator:
38
38
 
39
- rails generate mini_test:feature CanAccessHome
39
+ rails generate minitest:feature CanAccessHome
40
40
 
41
41
  You can now use Capybara in your feature tests!
42
42
 
@@ -51,7 +51,7 @@ You can now use Capybara in your feature tests!
51
51
 
52
52
  Or you can specify use of the Capybara's spec DSL by providing the <tt>--spec</tt> option:
53
53
 
54
- rails generate mini_test:feature CanAccessHome --spec
54
+ rails generate minitest:feature CanAccessHome --spec
55
55
 
56
56
  Which will generate a feature test using the Capybara spec DSL:
57
57
 
@@ -60,11 +60,22 @@ Which will generate a feature test using the Capybara spec DSL:
60
60
  feature "Can Access Home" do
61
61
  scenario "has content" do
62
62
  visit root_path
63
- assert page.has_content?("Home#index")
63
+ page.must_have_content "Home#index"
64
64
  end
65
65
  end
66
66
 
67
- If you want Capybara within your integration tests, add the following to your <tt>minitest_helper.rb</tt> file:
67
+ An alternative way to specify using Capybara is to provide <tt>:capybara</tt> as a second argument to <tt>describe</tt>:
68
+
69
+ require "minitest_helper"
70
+
71
+ describe "Can Access Home", :capybara do
72
+ it "has content" do
73
+ visit root_path
74
+ page.must_have_content "Home#index"
75
+ end
76
+ end
77
+
78
+ While not recommended, you can add Capybara to your integration tests. To do this add the following to your <tt>test_helper.rb</tt> file:
68
79
 
69
80
  class ActionDispatch::IntegrationTest
70
81
  include Capybara::DSL
@@ -78,7 +89,7 @@ Tests can specify drivers by setting the metadata.
78
89
  feature "Can Access Home" do
79
90
  scenario "has content", js: true do
80
91
  visit root_path # Visited with JavaScript driver
81
- assert page.has_content?("Home#index")
92
+ page.must_have_content "Home#index"
82
93
  end
83
94
  end
84
95
 
@@ -94,7 +105,7 @@ Issue the following rake command to run your features tests:
94
105
 
95
106
  Or add the following to the bottom of your Rakefile to add feature tests to the default testing task:
96
107
 
97
- MiniTest::Rails::Testing.default_tasks << "features"
108
+ Minitest::Rails::Testing.default_tasks << "features"
98
109
 
99
110
  == Get Involved
100
111
 
@@ -104,7 +115,7 @@ https://groups.google.com/group/minitest-rails
104
115
 
105
116
  == License
106
117
 
107
- Copyright (c) 2013 Mike Moore
118
+ Copyright (c) 2014 Mike Moore
108
119
 
109
120
  Permission is hereby granted, free of charge, to any person obtaining
110
121
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -9,8 +9,8 @@ Hoe.plugin :gemspec
9
9
  Hoe.spec "minitest-rails-capybara" do
10
10
  developer "Mike Moore", "mike@blowmage.com"
11
11
 
12
- self.summary = "Capybara integration for MiniTest and Rails"
13
- self.description = "Adds Capybara feature tests in MiniTest and Rails."
12
+ self.summary = "Capybara integration for Minitest and Rails"
13
+ self.description = "Adds Capybara feature tests in Minitest and Rails."
14
14
  self.urls = ["http://blowmage.com/minitest-rails-capybara"]
15
15
 
16
16
  self.history_file = "CHANGELOG.rdoc"
@@ -19,9 +19,9 @@ Hoe.spec "minitest-rails-capybara" do
19
19
 
20
20
  license "MIT"
21
21
 
22
- dependency "minitest-rails", "~> 1.0"
22
+ dependency "minitest-rails", "= 2.0.0.beta1"
23
23
  dependency "capybara", "~> 2.0"
24
- dependency "minitest-capybara", "~> 0.5.0"
24
+ dependency "minitest-capybara", "~> 0.6.1"
25
25
  dependency "minitest-metadata", "~> 0.5.0"
26
26
  end
27
27
 
@@ -1,4 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", "~> 4.0.4"
3
+ gem "rails", "~> 4.1.0"
4
4
  gem "rake"
@@ -1,7 +1,7 @@
1
1
  require "minitest-rails"
2
- require "generators/mini_test"
2
+ require "generators/minitest"
3
3
 
4
- module MiniTest
4
+ module Minitest
5
5
  module Generators
6
6
  class FeatureGenerator < Base
7
7
 
@@ -9,9 +9,9 @@ module MiniTest
9
9
  @_minitest_capybara_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
10
10
  end
11
11
 
12
- class_option :spec, :type => :boolean, :default => false, :desc => "Use MiniTest::Spec DSL"
12
+ class_option :spec, type: :boolean, default: false, desc: "Use Minitest::Spec DSL"
13
13
 
14
- check_class_collision :suffix => "Test"
14
+ check_class_collision suffix: "Test"
15
15
 
16
16
  def create_test_files
17
17
  if options[:spec]
@@ -17,10 +17,13 @@ module Capybara
17
17
  class TestCase < ::ActiveSupport::TestCase
18
18
  include Capybara::DSL
19
19
  include Capybara::Assertions
20
- include MiniTest::Metadata
20
+ include Minitest::Metadata
21
21
 
22
22
  # Register by name
23
23
  register_spec_type(/(Feature|Browser)( ?Test)?\z/i, self)
24
+ register_spec_type(self) do |desc, addl|
25
+ :capybara == addl
26
+ end
24
27
 
25
28
  # Enable Capybara's spec DSL
26
29
  class << self
@@ -1,9 +1,9 @@
1
1
  require "minitest-rails"
2
2
 
3
- module MiniTest
3
+ module Minitest
4
4
  module Rails
5
5
  module Capybara
6
- VERSION = "1.0.0"
6
+ VERSION = "2.0.0.beta1"
7
7
  end
8
8
  end
9
9
  end
@@ -1,47 +1,47 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: minitest-rails-capybara 1.0.0.20140414101711 ruby lib
2
+ # stub: minitest-rails-capybara 2.0.0.beta1.20140414183521 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "minitest-rails-capybara"
6
- s.version = "1.0.0.20140414101711"
6
+ s.version = "2.0.0.beta1.20140414183521"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Mike Moore"]
11
- s.date = "2014-04-14"
12
- s.description = "Adds Capybara feature tests in MiniTest and Rails."
11
+ s.date = "2014-04-15"
12
+ s.description = "Adds Capybara feature tests in Minitest and Rails."
13
13
  s.email = ["mike@blowmage.com"]
14
14
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
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"]
15
+ s.files = [".autotest", ".gemtest", ".travis.yml", "CHANGELOG.rdoc", "Gemfile", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "gemfiles/4.1.gemfile", "lib/generators/minitest/feature/feature_generator.rb", "lib/generators/minitest/feature/templates/feature_spec.rb", "lib/generators/minitest/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", "test/test_spec_type.rb"]
16
16
  s.homepage = "http://blowmage.com/minitest-rails-capybara"
17
17
  s.licenses = ["MIT"]
18
18
  s.rdoc_options = ["--main", "README.rdoc"]
19
19
  s.rubygems_version = "2.2.2"
20
- s.summary = "Capybara integration for MiniTest and Rails"
21
- s.test_files = ["test/test_assertions_expectation.rb", "test/test_dsl.rb", "test/test_sanity.rb", "test/test_spec.rb"]
20
+ s.summary = "Capybara integration for Minitest and Rails"
21
+ s.test_files = ["test/test_assertions_expectation.rb", "test/test_dsl.rb", "test/test_sanity.rb", "test/test_spec.rb", "test/test_spec_type.rb"]
22
22
 
23
23
  if s.respond_to? :specification_version then
24
24
  s.specification_version = 4
25
25
 
26
26
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<minitest-rails>, ["~> 1.0"])
27
+ s.add_runtime_dependency(%q<minitest-rails>, ["= 2.0.0.beta1"])
28
28
  s.add_runtime_dependency(%q<capybara>, ["~> 2.0"])
29
- s.add_runtime_dependency(%q<minitest-capybara>, ["~> 0.5.0"])
29
+ s.add_runtime_dependency(%q<minitest-capybara>, ["~> 0.6.1"])
30
30
  s.add_runtime_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
31
31
  s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
32
32
  s.add_development_dependency(%q<hoe>, ["~> 3.11"])
33
33
  else
34
- s.add_dependency(%q<minitest-rails>, ["~> 1.0"])
34
+ s.add_dependency(%q<minitest-rails>, ["= 2.0.0.beta1"])
35
35
  s.add_dependency(%q<capybara>, ["~> 2.0"])
36
- s.add_dependency(%q<minitest-capybara>, ["~> 0.5.0"])
36
+ s.add_dependency(%q<minitest-capybara>, ["~> 0.6.1"])
37
37
  s.add_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
38
38
  s.add_dependency(%q<rdoc>, ["~> 4.0"])
39
39
  s.add_dependency(%q<hoe>, ["~> 3.11"])
40
40
  end
41
41
  else
42
- s.add_dependency(%q<minitest-rails>, ["~> 1.0"])
42
+ s.add_dependency(%q<minitest-rails>, ["= 2.0.0.beta1"])
43
43
  s.add_dependency(%q<capybara>, ["~> 2.0"])
44
- s.add_dependency(%q<minitest-capybara>, ["~> 0.5.0"])
44
+ s.add_dependency(%q<minitest-capybara>, ["~> 0.6.1"])
45
45
  s.add_dependency(%q<minitest-metadata>, ["~> 0.5.0"])
46
46
  s.add_dependency(%q<rdoc>, ["~> 4.0"])
47
47
  s.add_dependency(%q<hoe>, ["~> 3.11"])
data/tasks/test.rake CHANGED
@@ -1,41 +1,14 @@
1
1
  namespace :test do
2
- desc "Run tests for Rails 4.0"
3
- task "4.0" do
2
+ desc "Run tests for Rails 4.1"
3
+ task "4.1" do
4
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"
5
+ ENV["RAILS_VERSION"] = "4.1"
30
6
  sh "bundle && bundle exec rake test"
31
7
  sh "rm -f Gemfile.lock"
32
8
  end
33
9
 
34
10
  desc "Run tests for all Rails versions"
35
11
  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"
12
+ sh "rake test:4.1"
40
13
  end
41
14
  end
@@ -7,13 +7,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
7
7
  visit root_path
8
8
  assert_content page, "Hello World"
9
9
  refute_content page, "Goobye All!"
10
- page.must_have_content "Hello World"
11
- page.wont_have_content "Goobye All!"
12
- end
13
- it "gives a warning on old assertions" do
14
- visit root_path
15
- assert_have_content page, "Hello World"
16
- refute_have_content page, "Goobye All!"
10
+ page.must_have_content "Hello World"
11
+ page.wont_have_content "Goobye All!"
17
12
  end
18
13
  end
19
14
 
@@ -22,8 +17,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
22
17
  visit root_path
23
18
  assert_selector page, "h1"
24
19
  refute_selector page, "h3"
25
- page.must_have_selector "h1"
26
- page.wont_have_selector "h3"
20
+ page.must_have_selector "h1"
21
+ page.wont_have_selector "h3"
27
22
  end
28
23
  end
29
24
 
@@ -32,8 +27,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
32
27
  visit root_path
33
28
  assert_link page, "home"
34
29
  refute_link page, "away"
35
- page.must_have_link "home"
36
- page.wont_have_link "away"
30
+ page.must_have_link "home"
31
+ page.wont_have_link "away"
37
32
  end
38
33
  end
39
34
 
@@ -42,8 +37,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
42
37
  visit root_path
43
38
  assert_field page, "Email Address"
44
39
  refute_field page, "Bank Account"
45
- page.must_have_field "Email Address"
46
- page.wont_have_field "Bank Account"
40
+ page.must_have_field "Email Address"
41
+ page.wont_have_field "Bank Account"
47
42
  end
48
43
  end
49
44
 
@@ -52,8 +47,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
52
47
  visit root_path
53
48
  assert_button page, "random button"
54
49
  refute_button page, "missing button"
55
- page.must_have_button "random button"
56
- page.wont_have_button "missing button"
50
+ page.must_have_button "random button"
51
+ page.wont_have_button "missing button"
57
52
  end
58
53
  end
59
54
 
@@ -62,8 +57,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
62
57
  visit root_path
63
58
  assert_checked_field page, "going"
64
59
  refute_checked_field page, "avoid"
65
- page.must_have_checked_field "going"
66
- page.wont_have_checked_field "avoid"
60
+ page.must_have_checked_field "going"
61
+ page.wont_have_checked_field "avoid"
67
62
  end
68
63
  end
69
64
 
@@ -72,8 +67,8 @@ describe "Capybara Assertions and Expectations Feature Test" do
72
67
  visit root_path
73
68
  assert_unchecked_field page, "avoid"
74
69
  refute_unchecked_field page, "going"
75
- page.must_have_unchecked_field "avoid"
76
- page.wont_have_unchecked_field "going"
70
+ page.must_have_unchecked_field "avoid"
71
+ page.wont_have_unchecked_field "going"
77
72
  end
78
73
  end
79
74
 
data/test/test_sanity.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require "minitest/autorun"
2
2
  require "minitest-rails-capybara"
3
3
 
4
- class TestMiniTestRailsCapybara < MiniTest::Unit::TestCase
4
+ class TestMinitestRailsCapybara < Minitest::Unit::TestCase
5
5
  def test_sanity
6
- assert MiniTest::Rails::Capybara::VERSION
6
+ assert Minitest::Rails::Capybara::VERSION
7
7
  end
8
8
  end
@@ -0,0 +1,56 @@
1
+ require "rails_helper"
2
+
3
+ class TestCapybaraSpecType < Minitest::Test
4
+ def assert_capybara actual
5
+ assert_equal Capybara::Rails::TestCase, actual
6
+ end
7
+
8
+ def refute_capybara actual
9
+ refute_equal Capybara::Rails::TestCase, actual
10
+ end
11
+
12
+ def test_spec_type_resolves_for_matching_feature_strings
13
+ assert_capybara Minitest::Spec.spec_type("WidgetFeatureTest")
14
+ assert_capybara Minitest::Spec.spec_type("Widget Feature Test")
15
+ assert_capybara Minitest::Spec.spec_type("WidgetFeature")
16
+ assert_capybara Minitest::Spec.spec_type("Widget Feature")
17
+ # And is not case sensitive
18
+ assert_capybara Minitest::Spec.spec_type("widgetfeaturetest")
19
+ assert_capybara Minitest::Spec.spec_type("widget feature test")
20
+ assert_capybara Minitest::Spec.spec_type("widgetfeature")
21
+ assert_capybara Minitest::Spec.spec_type("widget feature")
22
+ end
23
+
24
+ def test_spec_type_wont_match_non_space_characters_feature
25
+ refute_capybara Minitest::Spec.spec_type("Widget Feature\tTest")
26
+ refute_capybara Minitest::Spec.spec_type("Widget Feature\rTest")
27
+ refute_capybara Minitest::Spec.spec_type("Widget Feature\nTest")
28
+ refute_capybara Minitest::Spec.spec_type("Widget Feature\fTest")
29
+ refute_capybara Minitest::Spec.spec_type("Widget FeatureXTest")
30
+ end
31
+
32
+ def test_spec_type_resolves_for_matching_browser_strings
33
+ assert_capybara Minitest::Spec.spec_type("WidgetBrowserTest")
34
+ assert_capybara Minitest::Spec.spec_type("Widget Browser Test")
35
+ assert_capybara Minitest::Spec.spec_type("WidgetBrowser")
36
+ assert_capybara Minitest::Spec.spec_type("Widget Browser")
37
+ # And is not case sensitive
38
+ assert_capybara Minitest::Spec.spec_type("widgetbrowsertest")
39
+ assert_capybara Minitest::Spec.spec_type("widget browser test")
40
+ assert_capybara Minitest::Spec.spec_type("widgetbrowser")
41
+ assert_capybara Minitest::Spec.spec_type("widget browser")
42
+ end
43
+
44
+ def test_spec_type_wont_match_non_space_characters_browser
45
+ refute_capybara Minitest::Spec.spec_type("Widget Browser\tTest")
46
+ refute_capybara Minitest::Spec.spec_type("Widget Browser\rTest")
47
+ refute_capybara Minitest::Spec.spec_type("Widget Browser\nTest")
48
+ refute_capybara Minitest::Spec.spec_type("Widget Browser\fTest")
49
+ refute_capybara Minitest::Spec.spec_type("Widget BrowserXTest")
50
+ end
51
+
52
+ def test_spec_type_resolves_for_additional_desc_capybara
53
+ refute_capybara Minitest::Spec.spec_type("Unmatched String")
54
+ assert_capybara Minitest::Spec.spec_type(["Unmatched String", :capybara])
55
+ end
56
+ 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: 1.0.0
4
+ version: 2.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-14 00:00:00.000000000 Z
11
+ date: 2014-04-15 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: '1.0'
19
+ version: 2.0.0.beta1
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: '1.0'
26
+ version: 2.0.0.beta1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.5.0
47
+ version: 0.6.1
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: 0.5.0
54
+ version: 0.6.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest-metadata
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.11'
97
- description: Adds Capybara feature tests in MiniTest and Rails.
97
+ description: Adds Capybara feature tests in Minitest and Rails.
98
98
  email:
99
99
  - mike@blowmage.com
100
100
  executables: []
@@ -113,13 +113,10 @@ files:
113
113
  - Manifest.txt
114
114
  - README.rdoc
115
115
  - Rakefile
116
- - gemfiles/3.0.gemfile
117
- - gemfiles/3.1.gemfile
118
- - gemfiles/3.2.gemfile
119
- - gemfiles/4.0.gemfile
120
- - lib/generators/mini_test/feature/feature_generator.rb
121
- - lib/generators/mini_test/feature/templates/feature_spec.rb
122
- - lib/generators/mini_test/feature/templates/feature_test.rb
116
+ - gemfiles/4.1.gemfile
117
+ - lib/generators/minitest/feature/feature_generator.rb
118
+ - lib/generators/minitest/feature/templates/feature_spec.rb
119
+ - lib/generators/minitest/feature/templates/feature_test.rb
123
120
  - lib/minitest-rails-capybara.rb
124
121
  - lib/minitest/rails/capybara.rb
125
122
  - minitest-rails-capybara.gemspec
@@ -129,6 +126,7 @@ files:
129
126
  - test/test_dsl.rb
130
127
  - test/test_sanity.rb
131
128
  - test/test_spec.rb
129
+ - test/test_spec_type.rb
132
130
  homepage: http://blowmage.com/minitest-rails-capybara
133
131
  licenses:
134
132
  - MIT
@@ -146,17 +144,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
144
  version: '0'
147
145
  required_rubygems_version: !ruby/object:Gem::Requirement
148
146
  requirements:
149
- - - ">="
147
+ - - ">"
150
148
  - !ruby/object:Gem::Version
151
- version: '0'
149
+ version: 1.3.1
152
150
  requirements: []
153
151
  rubyforge_project:
154
152
  rubygems_version: 2.2.2
155
153
  signing_key:
156
154
  specification_version: 4
157
- summary: Capybara integration for MiniTest and Rails
155
+ summary: Capybara integration for Minitest and Rails
158
156
  test_files:
159
157
  - test/test_assertions_expectation.rb
160
158
  - test/test_dsl.rb
161
159
  - test/test_sanity.rb
162
160
  - test/test_spec.rb
161
+ - test/test_spec_type.rb
data/gemfiles/3.0.gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem "rails", "~> 3.0.20"
4
- gem "rake"
5
- gem "rdoc", "~> 3.10"
data/gemfiles/3.1.gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem "rails", "~> 3.1.12"
4
- gem "rake"
5
- gem "rdoc", "~> 3.10"
data/gemfiles/3.2.gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem "rails", "~> 3.2.17"
4
- gem "rake"
5
- gem "rdoc", "~> 3.10"