capybara_minitest_spec 1.0.4 → 1.0.5

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: 1f845bf6cfe7da9df03c2b5d0b46f5aa43f306b1
4
- data.tar.gz: efcf30bd10718f5d74d4363e5f396ffbaf3f32c3
3
+ metadata.gz: 6a6a748cfac03182125c90c7ac0f42ae56535bf8
4
+ data.tar.gz: 17ee34f566594752a0bbfc9ce154e30b2ccc62aa
5
5
  SHA512:
6
- metadata.gz: 724d4b2b57f0b35929b540a1b824b51f88ba3566dffd18c1af5e38400393ee36dc7f54e2d0472bcb796158342cd207f3a905c50949c693adc9a54aafa76a2c31
7
- data.tar.gz: 5b452065188b95c4c12073bc6d7380536bb107e9b39caa54391f633bc2603a322e33b674100c869e043ed7a6d2d1501a0b1d9ae1ce76230f0f350ccafb0668d1
6
+ metadata.gz: 73c552ac20b513d98bfc3d80fb51b45cfc18fffe92e1574b8105b048bf35d893d6ad7779498b6b7c8e088e3c0e5bb04ded0e2467dd8233324308d5cd5ff2e0b2
7
+ data.tar.gz: 45c86ab1b30e1d52ebd1c9ae978459a1047fe683a317769ffd3bd12a1aaf6c65daed545ad877e45825136291b012262b0ec0ae29125811e05a2dae059b967e53
@@ -3,3 +3,6 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.0
6
+ gemfile:
7
+ - Gemfile
8
+ - gemfiles/Gemfile_minitest_4
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capybara_minitest_spec (1.0.4)
4
+ capybara_minitest_spec (1.0.5)
5
5
  capybara (>= 2)
6
- minitest (>= 2)
6
+ minitest (>= 4)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
@@ -15,11 +15,11 @@ GEM
15
15
  rack (>= 1.0.0)
16
16
  rack-test (>= 0.5.4)
17
17
  xpath (~> 2.0)
18
- mime-types (2.3)
19
- mini_portile (0.6.0)
18
+ mime-types (2.4.3)
19
+ mini_portile (0.6.1)
20
20
  minitest (5.4.2)
21
- nokogiri (1.6.3.1)
22
- mini_portile (= 0.6.0)
21
+ nokogiri (1.6.4.1)
22
+ mini_portile (~> 0.6.0)
23
23
  rack (1.5.2)
24
24
  rack-protection (1.5.3)
25
25
  rack
data/README.md CHANGED
@@ -56,9 +56,17 @@ NOTE: If after installing the Capybara gem, Nokogiri isn't installed, it's a kno
56
56
 
57
57
  ## Compatibility
58
58
 
59
- In theory, this should work with Capybara >= 2. The latest version it was tested with was Capybara 2.4.1.
59
+ ### Capybara
60
60
 
61
- For Capybara < 2 support, use a version of this gem < 1.0.
61
+ In theory, this should work with Capybara >= 2. The latest version it was tested with was Capybara 2.4.1.
62
+
63
+ For Capybara < 2 support, use a version of this gem < 1.0.
64
+
65
+ ### Minitest
66
+
67
+ Supports Minitest >= 4.
68
+ It may work for earlier versions, I just haven't tested it.
69
+ If you need it to support an earlier version, let me know and I'll see what I can do.
62
70
 
63
71
  ## Testing
64
72
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_runtime_dependency 'capybara', '>= 2'
23
- s.add_runtime_dependency 'minitest', '>= 2'
23
+ s.add_runtime_dependency 'minitest', '>= 4'
24
24
 
25
25
  s.add_development_dependency 'awesome_print'
26
26
  s.add_development_dependency 'rake'
@@ -0,0 +1,5 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'minitest', '< 5'
@@ -1,6 +1,5 @@
1
1
  require "capybara_minitest_spec/version"
2
2
 
3
- require 'minitest'
4
3
  require 'minitest/spec'
5
4
  require 'capybara'
6
5
  require 'capybara/rspec/matchers'
@@ -1,3 +1,3 @@
1
1
  module CapybaraMiniTestSpec
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -3,11 +3,17 @@
3
3
  require_relative 'helper'
4
4
 
5
5
  # Bridge some gaps between RSpec and MiniTest.
6
- class Minitest::Test
7
- class << self
8
- alias_method :context, :describe
6
+ case MiniTest::Unit::VERSION.split('.').first.to_i
7
+ when 5
8
+ class Minitest::Test
9
+ class << self
10
+ alias_method :context, :describe
11
+ end
12
+ alias_method :expect, :proc
9
13
  end
10
- alias_method :expect, :proc
14
+ else
15
+ Kernel.send(:alias_method, :context, :describe)
16
+ Kernel.send(:alias_method, :expect, :proc)
11
17
  end
12
18
 
13
19
  module MiniTest::Assertions
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara_minitest_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Ning
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2'
33
+ version: '4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '2'
40
+ version: '4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: awesome_print
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,6 +98,7 @@ files:
98
98
  - README.md
99
99
  - Rakefile
100
100
  - capybara_minitest_spec.gemspec
101
+ - gemfiles/Gemfile_minitest_4
101
102
  - lib/capybara_minitest_spec.rb
102
103
  - lib/capybara_minitest_spec/test_name.rb
103
104
  - lib/capybara_minitest_spec/version.rb