shoulda-context 1.2.2 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +0 -1
  3. data/.rubocop.yml +190 -0
  4. data/.ruby-version +1 -1
  5. data/.travis.yml +27 -2
  6. data/Appraisals +15 -32
  7. data/CHANGELOG.md +27 -0
  8. data/Gemfile +4 -1
  9. data/Gemfile.lock +72 -0
  10. data/MIT-LICENSE +1 -1
  11. data/README.md +140 -29
  12. data/Rakefile +19 -14
  13. data/bin/install_gems_in_all_appraisals +16 -0
  14. data/bin/run_all_tests +16 -0
  15. data/bin/setup +190 -0
  16. data/bin/supported_ruby_versions +7 -0
  17. data/bin/update_gem_in_all_appraisals +17 -0
  18. data/bin/update_gems_in_all_appraisals +16 -0
  19. data/{bin → exe}/convert_to_should_syntax +0 -0
  20. data/gemfiles/rails_4_2.gemfile +10 -0
  21. data/gemfiles/rails_4_2.gemfile.lock +164 -0
  22. data/gemfiles/rails_5_0.gemfile +10 -0
  23. data/gemfiles/rails_5_0.gemfile.lock +170 -0
  24. data/gemfiles/rails_5_1.gemfile +10 -0
  25. data/gemfiles/rails_5_1.gemfile.lock +170 -0
  26. data/gemfiles/rails_5_2.gemfile +10 -0
  27. data/gemfiles/rails_5_2.gemfile.lock +178 -0
  28. data/lib/shoulda/context.rb +12 -16
  29. data/lib/shoulda/context/assertions.rb +16 -13
  30. data/lib/shoulda/context/configuration.rb +19 -0
  31. data/lib/shoulda/context/context.rb +22 -305
  32. data/lib/shoulda/context/dsl.rb +279 -0
  33. data/lib/shoulda/context/railtie.rb +14 -0
  34. data/lib/shoulda/context/test_framework_detection.rb +4 -5
  35. data/lib/shoulda/context/version.rb +1 -1
  36. data/lib/shoulda/context/world.rb +22 -0
  37. data/shoulda-context.gemspec +19 -17
  38. data/test/fake_rails_root/test/shoulda_macros/custom_macro.rb +1 -1
  39. data/test/fake_rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb +1 -2
  40. data/test/fake_rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb +1 -2
  41. data/test/shoulda/autoload_macro_test.rb +1 -1
  42. data/test/shoulda/context_test.rb +92 -53
  43. data/test/shoulda/convert_to_should_syntax_test.rb +5 -7
  44. data/test/shoulda/helpers_test.rb +24 -59
  45. data/test/shoulda/railtie_test.rb +43 -0
  46. data/test/shoulda/should_test.rb +163 -24
  47. data/test/shoulda/test_framework_detection_test.rb +64 -71
  48. data/test/support/current_bundle.rb +61 -0
  49. data/test/support/rails_application_with_shoulda_context.rb +46 -0
  50. data/test/support/snowglobe.rb +5 -0
  51. data/test/test_helper.rb +35 -11
  52. metadata +71 -60
  53. data/gemfiles/minitest_4_x.gemfile +0 -7
  54. data/gemfiles/minitest_4_x.gemfile.lock +0 -96
  55. data/gemfiles/minitest_5_x.gemfile +0 -7
  56. data/gemfiles/minitest_5_x.gemfile.lock +0 -102
  57. data/gemfiles/rails_3_0.gemfile +0 -8
  58. data/gemfiles/rails_3_0.gemfile.lock +0 -93
  59. data/gemfiles/rails_3_1.gemfile +0 -10
  60. data/gemfiles/rails_3_1.gemfile.lock +0 -114
  61. data/gemfiles/rails_3_2.gemfile +0 -10
  62. data/gemfiles/rails_3_2.gemfile.lock +0 -112
  63. data/gemfiles/rails_4_0.gemfile +0 -10
  64. data/gemfiles/rails_4_0.gemfile.lock +0 -107
  65. data/gemfiles/rails_4_1.gemfile +0 -10
  66. data/gemfiles/rails_4_1.gemfile.lock +0 -119
  67. data/gemfiles/test_unit.gemfile +0 -7
  68. data/gemfiles/test_unit.gemfile.lock +0 -95
  69. data/init.rb +0 -1
  70. data/rails/init.rb +0 -4
@@ -1,78 +1,57 @@
1
- require 'test_helper'
2
- require 'tempfile'
1
+ require "test_helper"
2
+ require "tempfile"
3
3
 
4
- class TestFrameworkDetectionTest < Test::Unit::TestCase
5
- if CURRENT_APPRAISAL_NAME == 'rails_4_1'
6
- should 'detect Minitest 5.x w/ Rails 4.1' do
7
- assert_integration_with_rails_and 'Minitest::Test', 'Minitest::Unit::TestCase'
4
+ class TestFrameworkDetectionTest < PARENT_TEST_CASE
5
+ if Tests::CurrentBundle.instance.current_appraisal == "rails_5_2"
6
+ should "detect Minitest 5.x w/ Rails 5.2" do
7
+ assert_integration_with_rails_and "Minitest::Test"
8
8
  end
9
9
  end
10
10
 
11
- if CURRENT_APPRAISAL_NAME == 'rails_4_0'
12
- should 'detect ActiveSupport::TestCase and Minitest 4.x w/ Rails 4.0' do
13
- assert_integration_with_rails_and 'MiniTest::Unit::TestCase'
11
+ if Tests::CurrentBundle.instance.current_appraisal == "rails_5_1"
12
+ should "detect Minitest 5.x w/ Rails 5.1" do
13
+ assert_integration_with_rails_and "Minitest::Test"
14
14
  end
15
15
  end
16
16
 
17
- if CURRENT_APPRAISAL_NAME == 'rails_3_2'
18
- should 'detect ActiveSupport::TestCase and Test::Unit::TestCase w/ Rails 3.2' do
19
- assert_integration_with_rails_and 'Test::Unit::TestCase'
17
+ if Tests::CurrentBundle.instance.current_appraisal == "rails_5_0"
18
+ should "detect Minitest 5.x w/ Rails 5.0" do
19
+ assert_integration_with_rails_and "Minitest::Test"
20
20
  end
21
21
  end
22
22
 
23
- if CURRENT_APPRAISAL_NAME == 'rails_3_1'
24
- should 'detect ActiveSupport::TestCase and Test::Unit::TestCase w/ Rails 3.1' do
25
- assert_integration_with_rails_and 'Test::Unit::TestCase'
23
+ if Tests::CurrentBundle.instance.current_appraisal == "rails_4_2"
24
+ should "detect ActiveSupport::TestCase and Minitest 4.x w/ Rails 4.2" do
25
+ assert_integration_with_rails_and "Minitest::Test"
26
26
  end
27
27
  end
28
28
 
29
- if CURRENT_APPRAISAL_NAME == 'rails_3_0'
30
- should 'detect ActiveSupport::TestCase and Test::Unit::TestCase w/ Rails 3.0' do
31
- assert_integration_with_rails_and 'Test::Unit::TestCase'
29
+ if TEST_FRAMEWORK == "minitest"
30
+ should "detect Minitest 5.x when it is loaded standalone" do
31
+ assert_integration_with "Minitest::Test", setup: <<-RUBY
32
+ require "minitest/autorun"
33
+ RUBY
32
34
  end
33
35
  end
34
36
 
35
- if CURRENT_APPRAISAL_NAME == 'minitest_5_x'
36
- should 'detect Minitest 5.x when it is loaded standalone' do
37
- assert_integration_with 'Minitest::Test', 'Minitest::Unit::TestCase',
37
+ if TEST_FRAMEWORK == "test_unit"
38
+ should "detect the test-unit gem when it is loaded standalone" do
39
+ assert_integration_with "Test::Unit::TestCase",
38
40
  setup: <<-RUBY
39
- require 'minitest/autorun'
41
+ require "test/unit"
40
42
  RUBY
41
43
  end
42
44
  end
43
45
 
44
- if CURRENT_APPRAISAL_NAME == 'minitest_4_x'
45
- should 'detect Minitest 4.x when it is loaded standalone' do
46
- assert_integration_with 'MiniTest::Unit::TestCase',
47
- setup: <<-RUBY
48
- require 'minitest/autorun'
49
- RUBY
50
- end
51
- end
52
-
53
- if CURRENT_APPRAISAL_NAME == 'test_unit'
54
- should 'detect the test-unit gem when it is loaded standalone' do
55
- assert_integration_with 'Test::Unit::TestCase',
56
- setup: <<-RUBY
57
- require 'test/unit'
58
- RUBY
59
- end
60
- end
61
-
62
- def assert_integration_with(*test_cases)
63
- assert_test_cases_are_detected(*test_cases)
64
- assert_our_api_is_available_in_test_cases(*test_cases)
65
- end
66
-
67
46
  def assert_integration_with_rails_and(*test_cases)
68
- test_cases = ['ActiveSupport::TestCase'] | test_cases
47
+ test_cases = ["ActiveSupport::TestCase"] | test_cases
69
48
  options = test_cases.last.is_a?(Hash) ? test_cases.pop : {}
70
49
  options[:setup] = <<-RUBY
71
- require 'rails/all'
72
- require 'rails/test_help'
50
+ require "rails/all"
51
+ require "rails/test_help"
73
52
  ActiveRecord::Base.establish_connection(
74
- adapter: 'sqlite3',
75
- database: ':memory:'
53
+ adapter: "sqlite3",
54
+ database: ":memory:"
76
55
  )
77
56
  RUBY
78
57
  args = test_cases + [options]
@@ -80,43 +59,55 @@ class TestFrameworkDetectionTest < Test::Unit::TestCase
80
59
  assert_integration_with(*args)
81
60
  end
82
61
 
62
+ def assert_integration_with(*test_cases)
63
+ assert_test_cases_are_detected(*test_cases)
64
+ assert_our_api_is_available_in_test_cases(*test_cases)
65
+ end
66
+
83
67
  def assert_test_cases_are_detected(*expected_test_cases)
84
68
  options = expected_test_cases.last.is_a?(Hash) ? expected_test_cases.pop : {}
85
- setup = options[:setup] || ''
69
+ setup = options[:setup] || ""
86
70
  output = execute(file_that_detects_test_framework_test_cases([setup]))
87
- actual_test_cases = output.split("\n").first.split(', ')
71
+ actual_test_cases = output.split("\n").first.split(", ")
88
72
  assert_equal expected_test_cases, actual_test_cases
89
73
  end
90
74
 
91
75
  def file_that_detects_test_framework_test_cases(mixins)
92
76
  <<-RUBY
93
77
  #{require_gems(mixins)}
94
- require 'yaml'
95
- test_cases = Shoulda::Context.test_framework_test_cases.map { |test_case| test_case.to_s }
78
+ require "yaml"
79
+ test_cases =
80
+ Shoulda::Context.test_framework_test_cases.map do |test_case|
81
+ test_case.to_s
82
+ end
96
83
  puts test_cases.join(', ')
97
84
  RUBY
98
85
  end
99
86
 
100
87
  def require_gems(mixins)
101
88
  <<-RUBY
102
- ENV['BUNDLE_GEMFILE'] = "#{PROJECT_DIR}/gemfiles/#{CURRENT_APPRAISAL_NAME}.gemfile"
103
- require 'bundler'
89
+ ENV["BUNDLE_GEMFILE"] =
90
+ "#{PROJECT_DIR}/gemfiles/" +
91
+ "#{Tests::CurrentBundle.instance.current_appraisal}.gemfile"
92
+ require "bundler"
104
93
  Bundler.setup
105
94
  #{mixins.join("\n")}
106
- require 'shoulda-context'
95
+ require "shoulda-context"
107
96
  RUBY
108
97
  end
109
98
 
110
99
  def assert_our_api_is_available_in_test_cases(*test_cases)
111
100
  options = test_cases.last.is_a?(Hash) ? test_cases.pop : {}
112
- setup = options[:setup] || ''
101
+ setup = options[:setup] || ""
113
102
 
114
103
  test_cases.each do |test_case|
115
- output = execute(file_that_runs_a_test_within_test_case(test_case, [setup]))
116
- assert_match /1 (tests|runs)/, output
117
- assert_match /1 assertions/, output
118
- assert_match /0 failures/, output
119
- assert_match /0 errors/, output
104
+ output = execute(
105
+ file_that_runs_a_test_within_test_case(test_case, [setup])
106
+ )
107
+ assert_match(/1 (tests|runs)/, output)
108
+ assert_match(/1 assertions/, output)
109
+ assert_match(/0 failures/, output)
110
+ assert_match(/0 errors/, output)
120
111
  end
121
112
  end
122
113
 
@@ -125,8 +116,8 @@ class TestFrameworkDetectionTest < Test::Unit::TestCase
125
116
  #{require_gems(mixins)}
126
117
 
127
118
  class FrameworkIntegrationTest < #{test_case}
128
- context 'a context' do
129
- should 'have a test' do
119
+ context "a context" do
120
+ should "have a test" do
130
121
  assert_equal true, true
131
122
  end
132
123
  end
@@ -135,20 +126,22 @@ class TestFrameworkDetectionTest < Test::Unit::TestCase
135
126
  end
136
127
 
137
128
  def execute(code)
138
- tempfile = Tempfile.new('shoulda-context-test')
129
+ tempfile = Tempfile.new("shoulda-context-test")
139
130
  tempfile.write(code)
140
131
  tempfile.close
141
132
 
142
- if ENV['DEBUG']
143
- puts 'Code:'
133
+ if ENV["DEBUG"]
134
+ puts "Code:"
144
135
  puts code
145
136
  end
146
137
 
147
- output = `RUBYOPT='' ruby #{tempfile.path} 2>&1`
148
- if ENV['DEBUG']
149
- puts 'Output:'
138
+ output = `RUBYOPT="" ruby #{tempfile.path} 2>/dev/null`
139
+
140
+ if ENV["DEBUG"]
141
+ puts "Output:"
150
142
  puts output
151
143
  end
144
+
152
145
  output
153
146
  end
154
147
  end
@@ -0,0 +1,61 @@
1
+ require "bundler"
2
+ require "appraisal"
3
+
4
+ module Tests
5
+ class CurrentBundle
6
+ AppraisalNotSpecified = Class.new(ArgumentError)
7
+
8
+ include Singleton
9
+
10
+ def assert_appraisal!
11
+ unless appraisal_in_use?
12
+ message = <<MSG
13
+
14
+
15
+ Please run tests starting with `appraisal <appraisal_name>`.
16
+ Possible appraisals are: #{available_appraisals}
17
+
18
+ MSG
19
+ raise AppraisalNotSpecified, message
20
+ end
21
+ end
22
+
23
+ def appraisal_in_use?
24
+ path.dirname == root.join("gemfiles")
25
+ end
26
+
27
+ def current_or_latest_appraisal
28
+ current_appraisal || latest_appraisal
29
+ end
30
+
31
+ def latest_appraisal
32
+ available_appraisals.max
33
+ end
34
+
35
+ def current_appraisal
36
+ if appraisal_in_use?
37
+ File.basename(path, ".gemfile")
38
+ end
39
+ end
40
+
41
+ private
42
+
43
+ def available_appraisals
44
+ appraisals = []
45
+
46
+ Appraisal::AppraisalFile.each do |appraisal|
47
+ appraisals << appraisal.name
48
+ end
49
+
50
+ appraisals
51
+ end
52
+
53
+ def path
54
+ Bundler.default_gemfile
55
+ end
56
+
57
+ def root
58
+ Pathname.new("../../..").expand_path(__FILE__)
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,46 @@
1
+ require_relative "snowglobe"
2
+
3
+ class RailsApplicationWithShouldaContext < Snowglobe::RailsApplication
4
+ ROOT_DIRECTORY = Pathname.new("../../..").expand_path(__FILE__)
5
+
6
+ def create
7
+ super
8
+
9
+ bundle.updating do
10
+ bundle.add_gem(test_framework_gem_name, group: :test)
11
+ bundle.add_gem("shoulda-context", path: ROOT_DIRECTORY, group: :test)
12
+ end
13
+ end
14
+
15
+ def test_framework_require_path
16
+ if TEST_FRAMEWORK == "test_unit"
17
+ "test-unit"
18
+ else
19
+ "minitest/autorun"
20
+ end
21
+ end
22
+
23
+ def create_gem_with_macro(module_name:, location:, macro_name:)
24
+ fs.write_file("#{location}/shoulda_macros/macros.rb", <<~FILE)
25
+ module #{module_name}
26
+ def #{macro_name}
27
+ puts "#{macro_name} is available"
28
+ end
29
+ end
30
+
31
+ Shoulda::Context.configure do |config|
32
+ config.extend(#{module_name})
33
+ end
34
+ FILE
35
+ end
36
+
37
+ private
38
+
39
+ def test_framework_gem_name
40
+ if TEST_FRAMEWORK == "test_unit"
41
+ "test-unit"
42
+ else
43
+ "minitest"
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ require "snowglobe"
2
+
3
+ Snowglobe.configure do |config|
4
+ config.project_name = "shoulda-context"
5
+ end
data/test/test_helper.rb CHANGED
@@ -1,16 +1,40 @@
1
- require 'fileutils'
2
- require 'test/unit'
3
- require 'mocha'
1
+ require_relative "support/current_bundle"
4
2
 
5
- if ENV['BUNDLE_GEMFILE'].to_s.empty?
6
- raise "No Appraisal is specified. Please re-run your tests with BUNDLE_GEMFILE set."
3
+ Tests::CurrentBundle.instance.assert_appraisal!
4
+
5
+ #---
6
+
7
+ TEST_FRAMEWORK = ENV.fetch("TEST_FRAMEWORK", "minitest")
8
+
9
+ if TEST_FRAMEWORK == "test_unit"
10
+ require "test-unit"
11
+ require "mocha/test_unit"
12
+ else
13
+ require "minitest/autorun"
14
+ require "mocha/minitest"
7
15
  end
8
16
 
9
- PROJECT_DIR = File.expand_path('../..', __FILE__)
10
- CURRENT_APPRAISAL_NAME = File.basename(ENV['BUNDLE_GEMFILE'], '.gemfile')
17
+ require "pry-byebug"
18
+
19
+ PROJECT_DIR = File.expand_path("../..", __FILE__)
20
+ PARENT_TEST_CASE =
21
+ if TEST_FRAMEWORK == "test_unit"
22
+ Test::Unit::TestCase
23
+ else
24
+ Minitest::Test
25
+ end
26
+ ASSERTION_CLASS =
27
+ if TEST_FRAMEWORK == "test_unit"
28
+ Test::Unit::AssertionFailedError
29
+ else
30
+ Minitest::Assertion
31
+ end
32
+
33
+ require_relative "../lib/shoulda/context"
11
34
 
12
- $LOAD_PATH << File.join(PROJECT_DIR, 'lib')
13
- require 'shoulda/context'
35
+ Shoulda.autoload_macros(
36
+ File.join(File.dirname(__FILE__), "fake_rails_root"),
37
+ File.join("vendor", "{plugins,gems}", "*")
38
+ )
14
39
 
15
- Shoulda.autoload_macros File.join(File.dirname(__FILE__), 'fake_rails_root'),
16
- File.join("vendor", "{plugins,gems}", "*")
40
+ require_relative "support/rails_application_with_shoulda_context"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoulda-context
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 2.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot, inc.
@@ -11,120 +11,120 @@ authors:
11
11
  - Dan Croak
12
12
  - Matt Jankowski
13
13
  autorequire:
14
- bindir: bin
14
+ bindir: exe
15
15
  cert_chain: []
16
- date: 2016-11-07 00:00:00.000000000 Z
16
+ date: 2019-04-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: appraisal
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - ~>
22
+ - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: '0.5'
24
+ version: '0'
25
25
  type: :development
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - ~>
29
+ - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: '0.5'
31
+ version: '0'
32
32
  - !ruby/object:Gem::Dependency
33
- name: rails
33
+ name: bundler
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '>='
36
+ - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: '3.0'
38
+ version: '1.0'
39
39
  type: :development
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - '>='
43
+ - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '3.0'
45
+ version: '1.0'
46
46
  - !ruby/object:Gem::Dependency
47
- name: mocha
47
+ name: m
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - ~>
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.9.10
52
+ version: '0'
53
53
  type: :development
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ~>
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 0.9.10
59
+ version: '0'
60
60
  - !ruby/object:Gem::Dependency
61
- name: rake
61
+ name: mocha
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - '>='
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  - !ruby/object:Gem::Dependency
75
- name: test-unit
75
+ name: pry-byebug
76
76
  requirement: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ~>
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 2.1.0
80
+ version: '0'
81
81
  type: :development
82
82
  prerelease: false
83
83
  version_requirements: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ~>
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
- version: 2.1.0
87
+ version: '0'
88
88
  - !ruby/object:Gem::Dependency
89
- name: pry
89
+ name: rake
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  - !ruby/object:Gem::Dependency
103
- name: byebug
103
+ name: rubocop
104
104
  requirement: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  type: :development
110
110
  prerelease: false
111
111
  version_requirements: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - '>='
113
+ - - ">="
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  - !ruby/object:Gem::Dependency
117
- name: pry-byebug
117
+ name: snowglobe
118
118
  requirement: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - '>='
127
+ - - ">="
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  description: Context framework extracted from Shoulda
@@ -134,45 +134,48 @@ executables:
134
134
  extensions: []
135
135
  extra_rdoc_files: []
136
136
  files:
137
- - .gitignore
138
- - .ruby-version
139
- - .travis.yml
137
+ - ".gitignore"
138
+ - ".rubocop.yml"
139
+ - ".ruby-version"
140
+ - ".travis.yml"
140
141
  - Appraisals
142
+ - CHANGELOG.md
141
143
  - CONTRIBUTING.md
142
144
  - Gemfile
145
+ - Gemfile.lock
143
146
  - MIT-LICENSE
144
147
  - README.md
145
148
  - Rakefile
146
- - bin/convert_to_should_syntax
147
- - gemfiles/minitest_4_x.gemfile
148
- - gemfiles/minitest_4_x.gemfile.lock
149
- - gemfiles/minitest_5_x.gemfile
150
- - gemfiles/minitest_5_x.gemfile.lock
151
- - gemfiles/rails_3_0.gemfile
152
- - gemfiles/rails_3_0.gemfile.lock
153
- - gemfiles/rails_3_1.gemfile
154
- - gemfiles/rails_3_1.gemfile.lock
155
- - gemfiles/rails_3_2.gemfile
156
- - gemfiles/rails_3_2.gemfile.lock
157
- - gemfiles/rails_4_0.gemfile
158
- - gemfiles/rails_4_0.gemfile.lock
159
- - gemfiles/rails_4_1.gemfile
160
- - gemfiles/rails_4_1.gemfile.lock
161
- - gemfiles/test_unit.gemfile
162
- - gemfiles/test_unit.gemfile.lock
163
- - init.rb
149
+ - bin/install_gems_in_all_appraisals
150
+ - bin/run_all_tests
151
+ - bin/setup
152
+ - bin/supported_ruby_versions
153
+ - bin/update_gem_in_all_appraisals
154
+ - bin/update_gems_in_all_appraisals
155
+ - exe/convert_to_should_syntax
156
+ - gemfiles/rails_4_2.gemfile
157
+ - gemfiles/rails_4_2.gemfile.lock
158
+ - gemfiles/rails_5_0.gemfile
159
+ - gemfiles/rails_5_0.gemfile.lock
160
+ - gemfiles/rails_5_1.gemfile
161
+ - gemfiles/rails_5_1.gemfile.lock
162
+ - gemfiles/rails_5_2.gemfile
163
+ - gemfiles/rails_5_2.gemfile.lock
164
164
  - lib/shoulda-context.rb
165
165
  - lib/shoulda/context.rb
166
166
  - lib/shoulda/context/assertions.rb
167
167
  - lib/shoulda/context/autoload_macros.rb
168
+ - lib/shoulda/context/configuration.rb
168
169
  - lib/shoulda/context/context.rb
170
+ - lib/shoulda/context/dsl.rb
169
171
  - lib/shoulda/context/proc_extensions.rb
172
+ - lib/shoulda/context/railtie.rb
170
173
  - lib/shoulda/context/tasks.rb
171
174
  - lib/shoulda/context/tasks/list_tests.rake
172
175
  - lib/shoulda/context/tasks/yaml_to_shoulda.rake
173
176
  - lib/shoulda/context/test_framework_detection.rb
174
177
  - lib/shoulda/context/version.rb
175
- - rails/init.rb
178
+ - lib/shoulda/context/world.rb
176
179
  - shoulda-context.gemspec
177
180
  - tasks/shoulda.rake
178
181
  - test/fake_rails_root/test/shoulda_macros/custom_macro.rb
@@ -183,8 +186,12 @@ files:
183
186
  - test/shoulda/context_test.rb
184
187
  - test/shoulda/convert_to_should_syntax_test.rb
185
188
  - test/shoulda/helpers_test.rb
189
+ - test/shoulda/railtie_test.rb
186
190
  - test/shoulda/should_test.rb
187
191
  - test/shoulda/test_framework_detection_test.rb
192
+ - test/support/current_bundle.rb
193
+ - test/support/rails_application_with_shoulda_context.rb
194
+ - test/support/snowglobe.rb
188
195
  - test/test_helper.rb
189
196
  homepage: http://thoughtbot.com/community/
190
197
  licenses:
@@ -196,17 +203,17 @@ require_paths:
196
203
  - lib
197
204
  required_ruby_version: !ruby/object:Gem::Requirement
198
205
  requirements:
199
- - - '>='
206
+ - - ">="
200
207
  - !ruby/object:Gem::Version
201
208
  version: '0'
202
209
  required_rubygems_version: !ruby/object:Gem::Requirement
203
210
  requirements:
204
- - - '>='
211
+ - - ">"
205
212
  - !ruby/object:Gem::Version
206
- version: '0'
213
+ version: 1.3.1
207
214
  requirements: []
208
215
  rubyforge_project:
209
- rubygems_version: 2.0.3
216
+ rubygems_version: 2.7.9
210
217
  signing_key:
211
218
  specification_version: 4
212
219
  summary: Context framework extracted from Shoulda
@@ -219,6 +226,10 @@ test_files:
219
226
  - test/shoulda/context_test.rb
220
227
  - test/shoulda/convert_to_should_syntax_test.rb
221
228
  - test/shoulda/helpers_test.rb
229
+ - test/shoulda/railtie_test.rb
222
230
  - test/shoulda/should_test.rb
223
231
  - test/shoulda/test_framework_detection_test.rb
232
+ - test/support/current_bundle.rb
233
+ - test/support/rails_application_with_shoulda_context.rb
234
+ - test/support/snowglobe.rb
224
235
  - test/test_helper.rb