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,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "minitest", "~> 4.0"
6
-
7
- gemspec :path=>"../"
@@ -1,96 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- shoulda-context (1.1.6)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (4.0.3)
10
- actionpack (= 4.0.3)
11
- mail (~> 2.5.4)
12
- actionpack (4.0.3)
13
- activesupport (= 4.0.3)
14
- builder (~> 3.1.0)
15
- erubis (~> 2.7.0)
16
- rack (~> 1.5.2)
17
- rack-test (~> 0.6.2)
18
- activemodel (4.0.3)
19
- activesupport (= 4.0.3)
20
- builder (~> 3.1.0)
21
- activerecord (4.0.3)
22
- activemodel (= 4.0.3)
23
- activerecord-deprecated_finders (~> 1.0.2)
24
- activesupport (= 4.0.3)
25
- arel (~> 4.0.0)
26
- activerecord-deprecated_finders (1.0.3)
27
- activesupport (4.0.3)
28
- i18n (~> 0.6, >= 0.6.4)
29
- minitest (~> 4.2)
30
- multi_json (~> 1.3)
31
- thread_safe (~> 0.1)
32
- tzinfo (~> 0.3.37)
33
- appraisal (0.5.2)
34
- bundler
35
- rake
36
- arel (4.0.2)
37
- atomic (1.1.16)
38
- builder (3.1.4)
39
- erubis (2.7.0)
40
- hike (1.2.3)
41
- i18n (0.6.9)
42
- mail (2.5.4)
43
- mime-types (~> 1.16)
44
- treetop (~> 1.4.8)
45
- mime-types (1.25.1)
46
- minitest (4.7.5)
47
- mocha (0.9.12)
48
- multi_json (1.9.2)
49
- polyglot (0.3.4)
50
- rack (1.5.2)
51
- rack-test (0.6.2)
52
- rack (>= 1.0)
53
- rails (4.0.3)
54
- actionmailer (= 4.0.3)
55
- actionpack (= 4.0.3)
56
- activerecord (= 4.0.3)
57
- activesupport (= 4.0.3)
58
- bundler (>= 1.3.0, < 2.0)
59
- railties (= 4.0.3)
60
- sprockets-rails (~> 2.0.0)
61
- railties (4.0.3)
62
- actionpack (= 4.0.3)
63
- activesupport (= 4.0.3)
64
- rake (>= 0.8.7)
65
- thor (>= 0.18.1, < 2.0)
66
- rake (10.2.1)
67
- sprockets (2.12.0)
68
- hike (~> 1.2)
69
- multi_json (~> 1.0)
70
- rack (~> 1.0)
71
- tilt (~> 1.1, != 1.3.0)
72
- sprockets-rails (2.0.1)
73
- actionpack (>= 3.0)
74
- activesupport (>= 3.0)
75
- sprockets (~> 2.8)
76
- test-unit (2.1.2)
77
- thor (0.19.1)
78
- thread_safe (0.3.1)
79
- atomic (>= 1.1.7, < 2)
80
- tilt (1.4.1)
81
- treetop (1.4.15)
82
- polyglot
83
- polyglot (>= 0.3.1)
84
- tzinfo (0.3.38)
85
-
86
- PLATFORMS
87
- ruby
88
-
89
- DEPENDENCIES
90
- appraisal (~> 0.5)
91
- minitest (~> 4.0)
92
- mocha (~> 0.9.10)
93
- rails (>= 3.0)
94
- rake
95
- shoulda-context!
96
- test-unit (~> 2.1.0)
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "minitest", "~> 5.0"
6
-
7
- gemspec :path=>"../"
@@ -1,102 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- shoulda-context (1.1.6)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (3.2.13)
10
- actionpack (= 3.2.13)
11
- mail (~> 2.5.3)
12
- actionpack (3.2.13)
13
- activemodel (= 3.2.13)
14
- activesupport (= 3.2.13)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- journey (~> 1.0.4)
18
- rack (~> 1.4.5)
19
- rack-cache (~> 1.2)
20
- rack-test (~> 0.6.1)
21
- sprockets (~> 2.2.1)
22
- activemodel (3.2.13)
23
- activesupport (= 3.2.13)
24
- builder (~> 3.0.0)
25
- activerecord (3.2.13)
26
- activemodel (= 3.2.13)
27
- activesupport (= 3.2.13)
28
- arel (~> 3.0.2)
29
- tzinfo (~> 0.3.29)
30
- activeresource (3.2.13)
31
- activemodel (= 3.2.13)
32
- activesupport (= 3.2.13)
33
- activesupport (3.2.13)
34
- i18n (= 0.6.1)
35
- multi_json (~> 1.0)
36
- appraisal (0.5.2)
37
- bundler
38
- rake
39
- arel (3.0.3)
40
- builder (3.0.4)
41
- erubis (2.7.0)
42
- hike (1.2.3)
43
- i18n (0.6.1)
44
- journey (1.0.4)
45
- json (1.8.1)
46
- mail (2.5.4)
47
- mime-types (~> 1.16)
48
- treetop (~> 1.4.8)
49
- mime-types (1.25.1)
50
- minitest (5.3.1)
51
- mocha (0.9.12)
52
- multi_json (1.9.2)
53
- polyglot (0.3.4)
54
- rack (1.4.5)
55
- rack-cache (1.2)
56
- rack (>= 0.4)
57
- rack-ssl (1.3.3)
58
- rack
59
- rack-test (0.6.2)
60
- rack (>= 1.0)
61
- rails (3.2.13)
62
- actionmailer (= 3.2.13)
63
- actionpack (= 3.2.13)
64
- activerecord (= 3.2.13)
65
- activeresource (= 3.2.13)
66
- activesupport (= 3.2.13)
67
- bundler (~> 1.0)
68
- railties (= 3.2.13)
69
- railties (3.2.13)
70
- actionpack (= 3.2.13)
71
- activesupport (= 3.2.13)
72
- rack-ssl (~> 1.3.2)
73
- rake (>= 0.8.7)
74
- rdoc (~> 3.4)
75
- thor (>= 0.14.6, < 2.0)
76
- rake (10.2.1)
77
- rdoc (3.12.2)
78
- json (~> 1.4)
79
- sprockets (2.2.2)
80
- hike (~> 1.2)
81
- multi_json (~> 1.0)
82
- rack (~> 1.0)
83
- tilt (~> 1.1, != 1.3.0)
84
- test-unit (2.1.2)
85
- thor (0.19.1)
86
- tilt (1.4.1)
87
- treetop (1.4.15)
88
- polyglot
89
- polyglot (>= 0.3.1)
90
- tzinfo (0.3.38)
91
-
92
- PLATFORMS
93
- ruby
94
-
95
- DEPENDENCIES
96
- appraisal (~> 0.5)
97
- minitest (~> 5.0)
98
- mocha (~> 0.9.10)
99
- rails (>= 3.0)
100
- rake
101
- shoulda-context!
102
- test-unit (~> 2.1.0)
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 3.0.0"
6
- gem "sqlite3"
7
-
8
- gemspec :path=>"../"
@@ -1,93 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- shoulda-context (1.1.6)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- abstract (1.0.0)
10
- actionmailer (3.0.20)
11
- actionpack (= 3.0.20)
12
- mail (~> 2.2.19)
13
- actionpack (3.0.20)
14
- activemodel (= 3.0.20)
15
- activesupport (= 3.0.20)
16
- builder (~> 2.1.2)
17
- erubis (~> 2.6.6)
18
- i18n (~> 0.5.0)
19
- rack (~> 1.2.5)
20
- rack-mount (~> 0.6.14)
21
- rack-test (~> 0.5.7)
22
- tzinfo (~> 0.3.23)
23
- activemodel (3.0.20)
24
- activesupport (= 3.0.20)
25
- builder (~> 2.1.2)
26
- i18n (~> 0.5.0)
27
- activerecord (3.0.20)
28
- activemodel (= 3.0.20)
29
- activesupport (= 3.0.20)
30
- arel (~> 2.0.10)
31
- tzinfo (~> 0.3.23)
32
- activeresource (3.0.20)
33
- activemodel (= 3.0.20)
34
- activesupport (= 3.0.20)
35
- activesupport (3.0.20)
36
- appraisal (0.5.2)
37
- bundler
38
- rake
39
- arel (2.0.10)
40
- builder (2.1.2)
41
- erubis (2.6.6)
42
- abstract (>= 1.0.0)
43
- i18n (0.5.3)
44
- json (1.8.1)
45
- mail (2.2.20)
46
- activesupport (>= 2.3.6)
47
- i18n (>= 0.4.0)
48
- mime-types (~> 1.16)
49
- treetop (~> 1.4.8)
50
- mime-types (1.25.1)
51
- mocha (0.9.12)
52
- polyglot (0.3.4)
53
- rack (1.2.8)
54
- rack-mount (0.6.14)
55
- rack (>= 1.0.0)
56
- rack-test (0.5.7)
57
- rack (>= 1.0)
58
- rails (3.0.20)
59
- actionmailer (= 3.0.20)
60
- actionpack (= 3.0.20)
61
- activerecord (= 3.0.20)
62
- activeresource (= 3.0.20)
63
- activesupport (= 3.0.20)
64
- bundler (~> 1.0)
65
- railties (= 3.0.20)
66
- railties (3.0.20)
67
- actionpack (= 3.0.20)
68
- activesupport (= 3.0.20)
69
- rake (>= 0.8.7)
70
- rdoc (~> 3.4)
71
- thor (~> 0.14.4)
72
- rake (10.2.1)
73
- rdoc (3.12.2)
74
- json (~> 1.4)
75
- sqlite3 (1.3.9)
76
- test-unit (2.1.2)
77
- thor (0.14.6)
78
- treetop (1.4.15)
79
- polyglot
80
- polyglot (>= 0.3.1)
81
- tzinfo (0.3.38)
82
-
83
- PLATFORMS
84
- ruby
85
-
86
- DEPENDENCIES
87
- appraisal (~> 0.5)
88
- mocha (~> 0.9.10)
89
- rails (~> 3.0.0)
90
- rake
91
- shoulda-context!
92
- sqlite3
93
- test-unit (~> 2.1.0)
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 3.1.0"
6
- gem "jquery-rails"
7
- gem "sass-rails"
8
- gem "sqlite3"
9
-
10
- gemspec :path=>"../"
@@ -1,114 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- shoulda-context (1.1.6)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (3.1.12)
10
- actionpack (= 3.1.12)
11
- mail (~> 2.4.4)
12
- actionpack (3.1.12)
13
- activemodel (= 3.1.12)
14
- activesupport (= 3.1.12)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- i18n (~> 0.6)
18
- rack (~> 1.3.6)
19
- rack-cache (~> 1.2)
20
- rack-mount (~> 0.8.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.0.4)
23
- activemodel (3.1.12)
24
- activesupport (= 3.1.12)
25
- builder (~> 3.0.0)
26
- i18n (~> 0.6)
27
- activerecord (3.1.12)
28
- activemodel (= 3.1.12)
29
- activesupport (= 3.1.12)
30
- arel (~> 2.2.3)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.1.12)
33
- activemodel (= 3.1.12)
34
- activesupport (= 3.1.12)
35
- activesupport (3.1.12)
36
- multi_json (~> 1.0)
37
- appraisal (0.5.2)
38
- bundler
39
- rake
40
- arel (2.2.3)
41
- builder (3.0.4)
42
- erubis (2.7.0)
43
- hike (1.2.3)
44
- i18n (0.6.9)
45
- jquery-rails (3.1.0)
46
- railties (>= 3.0, < 5.0)
47
- thor (>= 0.14, < 2.0)
48
- json (1.8.1)
49
- mail (2.4.4)
50
- i18n (>= 0.4.0)
51
- mime-types (~> 1.16)
52
- treetop (~> 1.4.8)
53
- mime-types (1.25.1)
54
- mocha (0.9.12)
55
- multi_json (1.9.2)
56
- polyglot (0.3.4)
57
- rack (1.3.10)
58
- rack-cache (1.2)
59
- rack (>= 0.4)
60
- rack-mount (0.8.3)
61
- rack (>= 1.0.0)
62
- rack-ssl (1.3.3)
63
- rack
64
- rack-test (0.6.2)
65
- rack (>= 1.0)
66
- rails (3.1.12)
67
- actionmailer (= 3.1.12)
68
- actionpack (= 3.1.12)
69
- activerecord (= 3.1.12)
70
- activeresource (= 3.1.12)
71
- activesupport (= 3.1.12)
72
- bundler (~> 1.0)
73
- railties (= 3.1.12)
74
- railties (3.1.12)
75
- actionpack (= 3.1.12)
76
- activesupport (= 3.1.12)
77
- rack-ssl (~> 1.3.2)
78
- rake (>= 0.8.7)
79
- rdoc (~> 3.4)
80
- thor (~> 0.14.6)
81
- rake (10.2.1)
82
- rdoc (3.12.2)
83
- json (~> 1.4)
84
- sass (3.3.4)
85
- sass-rails (3.1.0)
86
- actionpack (~> 3.1.0)
87
- railties (~> 3.1.0)
88
- sass (>= 3.1.4)
89
- sprockets (2.0.4)
90
- hike (~> 1.2)
91
- rack (~> 1.0)
92
- tilt (~> 1.1, != 1.3.0)
93
- sqlite3 (1.3.9)
94
- test-unit (2.1.2)
95
- thor (0.14.6)
96
- tilt (1.4.1)
97
- treetop (1.4.15)
98
- polyglot
99
- polyglot (>= 0.3.1)
100
- tzinfo (0.3.38)
101
-
102
- PLATFORMS
103
- ruby
104
-
105
- DEPENDENCIES
106
- appraisal (~> 0.5)
107
- jquery-rails
108
- mocha (~> 0.9.10)
109
- rails (~> 3.1.0)
110
- rake
111
- sass-rails
112
- shoulda-context!
113
- sqlite3
114
- test-unit (~> 2.1.0)