shoulda-context 1.2.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +0 -1
  3. data/.hound.yml +3 -0
  4. data/.rubocop.yml +190 -0
  5. data/.ruby-version +1 -1
  6. data/.travis.yml +36 -2
  7. data/Appraisals +100 -29
  8. data/CHANGELOG.md +29 -0
  9. data/Gemfile +15 -1
  10. data/Gemfile.lock +70 -0
  11. data/MIT-LICENSE +1 -1
  12. data/README.md +140 -29
  13. data/Rakefile +20 -15
  14. data/bin/install_gems_in_all_appraisals +16 -0
  15. data/bin/run_all_tests +16 -0
  16. data/bin/setup +190 -0
  17. data/bin/supported_ruby_versions +7 -0
  18. data/bin/update_gem_in_all_appraisals +17 -0
  19. data/bin/update_gems_in_all_appraisals +16 -0
  20. data/{bin → exe}/convert_to_should_syntax +0 -0
  21. data/gemfiles/rails_4_2.gemfile +35 -0
  22. data/gemfiles/rails_4_2.gemfile.lock +234 -0
  23. data/gemfiles/rails_5_0.gemfile +33 -0
  24. data/gemfiles/rails_5_0.gemfile.lock +226 -0
  25. data/gemfiles/rails_5_1.gemfile +34 -0
  26. data/gemfiles/rails_5_1.gemfile.lock +242 -0
  27. data/gemfiles/rails_5_2.gemfile +36 -0
  28. data/gemfiles/rails_5_2.gemfile.lock +261 -0
  29. data/gemfiles/rails_6_0.gemfile +38 -0
  30. data/gemfiles/rails_6_0.gemfile.lock +286 -0
  31. data/lib/shoulda/context.rb +13 -16
  32. data/lib/shoulda/context/assertions.rb +16 -13
  33. data/lib/shoulda/context/configuration.rb +19 -0
  34. data/lib/shoulda/context/context.rb +33 -307
  35. data/lib/shoulda/context/dsl.rb +279 -0
  36. data/lib/shoulda/context/rails_test_unit_reporter_patch.rb +21 -0
  37. data/lib/shoulda/context/railtie.rb +14 -0
  38. data/lib/shoulda/context/test_framework_detection.rb +4 -5
  39. data/lib/shoulda/context/version.rb +1 -1
  40. data/lib/shoulda/context/world.rb +22 -0
  41. data/shoulda-context.gemspec +11 -18
  42. data/test/fake_rails_root/test/shoulda_macros/custom_macro.rb +1 -1
  43. data/test/fake_rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb +1 -2
  44. data/test/fake_rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb +1 -2
  45. data/test/shoulda/autoload_macro_test.rb +1 -1
  46. data/test/shoulda/context_test.rb +92 -53
  47. data/test/shoulda/convert_to_should_syntax_test.rb +5 -7
  48. data/test/shoulda/helpers_test.rb +24 -59
  49. data/test/shoulda/railtie_test.rb +43 -0
  50. data/test/shoulda/rerun_snippet_test.rb +45 -0
  51. data/test/shoulda/should_test.rb +163 -24
  52. data/test/shoulda/test_framework_detection_test.rb +64 -71
  53. data/test/support/current_bundle.rb +61 -0
  54. data/test/support/rails_application_with_shoulda_context.rb +46 -0
  55. data/test/support/snowglobe.rb +5 -0
  56. data/test/test_helper.rb +43 -11
  57. metadata +46 -142
  58. data/gemfiles/minitest_4_x.gemfile +0 -7
  59. data/gemfiles/minitest_4_x.gemfile.lock +0 -96
  60. data/gemfiles/minitest_5_x.gemfile +0 -7
  61. data/gemfiles/minitest_5_x.gemfile.lock +0 -102
  62. data/gemfiles/rails_3_0.gemfile +0 -8
  63. data/gemfiles/rails_3_0.gemfile.lock +0 -93
  64. data/gemfiles/rails_3_1.gemfile +0 -10
  65. data/gemfiles/rails_3_1.gemfile.lock +0 -114
  66. data/gemfiles/rails_3_2.gemfile +0 -10
  67. data/gemfiles/rails_3_2.gemfile.lock +0 -112
  68. data/gemfiles/rails_4_0.gemfile +0 -10
  69. data/gemfiles/rails_4_0.gemfile.lock +0 -107
  70. data/gemfiles/rails_4_1.gemfile +0 -10
  71. data/gemfiles/rails_4_1.gemfile.lock +0 -119
  72. data/gemfiles/test_unit.gemfile +0 -7
  73. data/gemfiles/test_unit.gemfile.lock +0 -95
  74. data/init.rb +0 -1
  75. 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
@@ -1,16 +1,48 @@
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
+ require "pry-byebug"
8
+ require "warnings_logger"
9
+
10
+ TEST_FRAMEWORK = ENV.fetch("TEST_FRAMEWORK", "minitest")
11
+
12
+ if TEST_FRAMEWORK == "test_unit"
13
+ require "test-unit"
14
+ require "mocha/test_unit"
15
+ else
16
+ require "minitest/autorun"
17
+ require "mocha/minitest"
7
18
  end
8
19
 
9
- PROJECT_DIR = File.expand_path('../..', __FILE__)
10
- CURRENT_APPRAISAL_NAME = File.basename(ENV['BUNDLE_GEMFILE'], '.gemfile')
20
+ PROJECT_DIR = File.expand_path("../..", __FILE__)
21
+ PARENT_TEST_CASE =
22
+ if TEST_FRAMEWORK == "test_unit"
23
+ Test::Unit::TestCase
24
+ else
25
+ Minitest::Test
26
+ end
27
+ ASSERTION_CLASS =
28
+ if TEST_FRAMEWORK == "test_unit"
29
+ Test::Unit::AssertionFailedError
30
+ else
31
+ Minitest::Assertion
32
+ end
33
+
34
+ WarningsLogger::Spy.call(
35
+ project_name: "shoulda-context",
36
+ project_directory: Pathname.new("../..").expand_path(__FILE__)
37
+ )
38
+
39
+ require_relative "support/rails_application_with_shoulda_context"
40
+
41
+ require_relative "../lib/shoulda/context"
11
42
 
12
- $LOAD_PATH << File.join(PROJECT_DIR, 'lib')
13
- require 'shoulda/context'
43
+ Shoulda.autoload_macros(
44
+ File.join(File.dirname(__FILE__), "fake_rails_root"),
45
+ File.join("vendor", "{plugins,gems}", "*")
46
+ )
14
47
 
15
- Shoulda.autoload_macros File.join(File.dirname(__FILE__), 'fake_rails_root'),
16
- File.join("vendor", "{plugins,gems}", "*")
48
+ $VERBOSE = true
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
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot, inc.
@@ -11,122 +11,10 @@ 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
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
19
- name: appraisal
20
- requirement: !ruby/object:Gem::Requirement
21
- requirements:
22
- - - ~>
23
- - !ruby/object:Gem::Version
24
- version: '0.5'
25
- type: :development
26
- prerelease: false
27
- version_requirements: !ruby/object:Gem::Requirement
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- version: '0.5'
32
- - !ruby/object:Gem::Dependency
33
- name: rails
34
- requirement: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - '>='
37
- - !ruby/object:Gem::Version
38
- version: '3.0'
39
- type: :development
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- requirements:
43
- - - '>='
44
- - !ruby/object:Gem::Version
45
- version: '3.0'
46
- - !ruby/object:Gem::Dependency
47
- name: mocha
48
- requirement: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - ~>
51
- - !ruby/object:Gem::Version
52
- version: 0.9.10
53
- type: :development
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- version: 0.9.10
60
- - !ruby/object:Gem::Dependency
61
- name: rake
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- type: :development
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - '>='
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- - !ruby/object:Gem::Dependency
75
- name: test-unit
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ~>
79
- - !ruby/object:Gem::Version
80
- version: 2.1.0
81
- type: :development
82
- prerelease: false
83
- version_requirements: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: 2.1.0
88
- - !ruby/object:Gem::Dependency
89
- name: pry
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - '>='
93
- - !ruby/object:Gem::Version
94
- version: '0'
95
- type: :development
96
- prerelease: false
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- - !ruby/object:Gem::Dependency
103
- name: byebug
104
- requirement: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - '>='
107
- - !ruby/object:Gem::Version
108
- version: '0'
109
- type: :development
110
- prerelease: false
111
- version_requirements: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - '>='
114
- - !ruby/object:Gem::Version
115
- version: '0'
116
- - !ruby/object:Gem::Dependency
117
- name: pry-byebug
118
- requirement: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - '>='
121
- - !ruby/object:Gem::Version
122
- version: '0'
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - '>='
128
- - !ruby/object:Gem::Version
129
- version: '0'
16
+ date: 2020-06-13 00:00:00.000000000 Z
17
+ dependencies: []
130
18
  description: Context framework extracted from Shoulda
131
19
  email: support@thoughtbot.com
132
20
  executables:
@@ -134,45 +22,52 @@ executables:
134
22
  extensions: []
135
23
  extra_rdoc_files: []
136
24
  files:
137
- - .gitignore
138
- - .ruby-version
139
- - .travis.yml
25
+ - ".gitignore"
26
+ - ".hound.yml"
27
+ - ".rubocop.yml"
28
+ - ".ruby-version"
29
+ - ".travis.yml"
140
30
  - Appraisals
31
+ - CHANGELOG.md
141
32
  - CONTRIBUTING.md
142
33
  - Gemfile
34
+ - Gemfile.lock
143
35
  - MIT-LICENSE
144
36
  - README.md
145
37
  - 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
38
+ - bin/install_gems_in_all_appraisals
39
+ - bin/run_all_tests
40
+ - bin/setup
41
+ - bin/supported_ruby_versions
42
+ - bin/update_gem_in_all_appraisals
43
+ - bin/update_gems_in_all_appraisals
44
+ - exe/convert_to_should_syntax
45
+ - gemfiles/rails_4_2.gemfile
46
+ - gemfiles/rails_4_2.gemfile.lock
47
+ - gemfiles/rails_5_0.gemfile
48
+ - gemfiles/rails_5_0.gemfile.lock
49
+ - gemfiles/rails_5_1.gemfile
50
+ - gemfiles/rails_5_1.gemfile.lock
51
+ - gemfiles/rails_5_2.gemfile
52
+ - gemfiles/rails_5_2.gemfile.lock
53
+ - gemfiles/rails_6_0.gemfile
54
+ - gemfiles/rails_6_0.gemfile.lock
164
55
  - lib/shoulda-context.rb
165
56
  - lib/shoulda/context.rb
166
57
  - lib/shoulda/context/assertions.rb
167
58
  - lib/shoulda/context/autoload_macros.rb
59
+ - lib/shoulda/context/configuration.rb
168
60
  - lib/shoulda/context/context.rb
61
+ - lib/shoulda/context/dsl.rb
169
62
  - lib/shoulda/context/proc_extensions.rb
63
+ - lib/shoulda/context/rails_test_unit_reporter_patch.rb
64
+ - lib/shoulda/context/railtie.rb
170
65
  - lib/shoulda/context/tasks.rb
171
66
  - lib/shoulda/context/tasks/list_tests.rake
172
67
  - lib/shoulda/context/tasks/yaml_to_shoulda.rake
173
68
  - lib/shoulda/context/test_framework_detection.rb
174
69
  - lib/shoulda/context/version.rb
175
- - rails/init.rb
70
+ - lib/shoulda/context/world.rb
176
71
  - shoulda-context.gemspec
177
72
  - tasks/shoulda.rake
178
73
  - test/fake_rails_root/test/shoulda_macros/custom_macro.rb
@@ -183,8 +78,13 @@ files:
183
78
  - test/shoulda/context_test.rb
184
79
  - test/shoulda/convert_to_should_syntax_test.rb
185
80
  - test/shoulda/helpers_test.rb
81
+ - test/shoulda/railtie_test.rb
82
+ - test/shoulda/rerun_snippet_test.rb
186
83
  - test/shoulda/should_test.rb
187
84
  - test/shoulda/test_framework_detection_test.rb
85
+ - test/support/current_bundle.rb
86
+ - test/support/rails_application_with_shoulda_context.rb
87
+ - test/support/snowglobe.rb
188
88
  - test/test_helper.rb
189
89
  homepage: http://thoughtbot.com/community/
190
90
  licenses:
@@ -196,17 +96,16 @@ require_paths:
196
96
  - lib
197
97
  required_ruby_version: !ruby/object:Gem::Requirement
198
98
  requirements:
199
- - - '>='
99
+ - - ">="
200
100
  - !ruby/object:Gem::Version
201
101
  version: '0'
202
102
  required_rubygems_version: !ruby/object:Gem::Requirement
203
103
  requirements:
204
- - - '>='
104
+ - - ">="
205
105
  - !ruby/object:Gem::Version
206
106
  version: '0'
207
107
  requirements: []
208
- rubyforge_project:
209
- rubygems_version: 2.0.3
108
+ rubygems_version: 3.1.2
210
109
  signing_key:
211
110
  specification_version: 4
212
111
  summary: Context framework extracted from Shoulda
@@ -219,6 +118,11 @@ test_files:
219
118
  - test/shoulda/context_test.rb
220
119
  - test/shoulda/convert_to_should_syntax_test.rb
221
120
  - test/shoulda/helpers_test.rb
121
+ - test/shoulda/railtie_test.rb
122
+ - test/shoulda/rerun_snippet_test.rb
222
123
  - test/shoulda/should_test.rb
223
124
  - test/shoulda/test_framework_detection_test.rb
125
+ - test/support/current_bundle.rb
126
+ - test/support/rails_application_with_shoulda_context.rb
127
+ - test/support/snowglobe.rb
224
128
  - test/test_helper.rb