bogus 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -1
  4. data/Guardfile +1 -3
  5. data/Guardfile.cucumber +0 -2
  6. data/README.md +1 -1
  7. data/bogus.gemspec +3 -1
  8. data/features/changelog.md +11 -0
  9. data/features/configuration/fake_ar_attributes.feature +2 -2
  10. data/features/contract_tests/contract_tests_mocks.feature +5 -5
  11. data/features/contract_tests/contract_tests_spies.feature +1 -1
  12. data/features/contract_tests/contract_tests_stubs.feature +6 -6
  13. data/features/contract_tests/custom_overwritten_class.feature +4 -4
  14. data/features/contract_tests/return_value_contracts.feature +2 -2
  15. data/features/fakes/anonymous_doubles.feature +5 -5
  16. data/features/fakes/duck_types.feature +9 -9
  17. data/features/fakes/fake_objects.feature +31 -8
  18. data/features/fakes/global_fake_configuration.feature +5 -5
  19. data/features/fakes/replacing_classes.feature +5 -5
  20. data/features/readme.md +5 -5
  21. data/features/safe_stubbing/argument_matchers.feature +23 -10
  22. data/features/safe_stubbing/safe_mocking.feature +1 -1
  23. data/features/safe_stubbing/safe_stubbing.feature +1 -1
  24. data/features/safe_stubbing/spies.feature +7 -7
  25. data/lib/bogus.rb +1 -0
  26. data/lib/bogus/core_ext.rb +22 -0
  27. data/lib/bogus/fakes/fake.rb +2 -1
  28. data/lib/bogus/fakes/method_stringifier.rb +1 -0
  29. data/lib/bogus/mocking_dsl.rb +4 -0
  30. data/lib/bogus/stubbing/has_overwritten_methods.rb +28 -10
  31. data/lib/bogus/stubbing/have_received_matcher.rb +4 -2
  32. data/lib/bogus/stubbing/matchers/any_args.rb +9 -0
  33. data/lib/bogus/stubbing/matchers/matches_argument.rb +11 -0
  34. data/lib/bogus/stubbing/{any_args.rb → matchers/with_arguments.rb} +0 -6
  35. data/lib/bogus/stubbing/overwrites_methods.rb +6 -1
  36. data/lib/bogus/stubbing/undefined_return_value.rb +4 -0
  37. data/lib/bogus/support.rb +11 -0
  38. data/lib/bogus/version.rb +1 -1
  39. data/spec/bogus/clean_ruby_spec.rb +1 -1
  40. data/spec/bogus/configuration_spec.rb +2 -2
  41. data/spec/bogus/contracts/adds_contract_verification_spec.rb +10 -10
  42. data/spec/bogus/contracts/adds_recording_spec.rb +4 -4
  43. data/spec/bogus/contracts/interactions_repository_spec.rb +15 -15
  44. data/spec/bogus/contracts/proxy_class_spec.rb +7 -7
  45. data/spec/bogus/contracts/records_double_interactions_spec.rb +1 -1
  46. data/spec/bogus/contracts/verifies_contracts_spec.rb +3 -3
  47. data/spec/bogus/fakes/base_class_identifier_spec.rb +1 -1
  48. data/spec/bogus/fakes/class_methods_spec.rb +4 -5
  49. data/spec/bogus/fakes/converts_name_to_class_spec.rb +3 -3
  50. data/spec/bogus/fakes/copies_classes_spec.rb +20 -16
  51. data/spec/bogus/fakes/creates_fakes_spec.rb +6 -6
  52. data/spec/bogus/fakes/creates_fakes_with_stubbed_methods_spec.rb +16 -15
  53. data/spec/bogus/fakes/fake_ar_attributes_spec.rb +3 -3
  54. data/spec/bogus/fakes/fake_configuration_spec.rb +16 -16
  55. data/spec/bogus/fakes/fake_registry_spec.rb +2 -2
  56. data/spec/bogus/fakes/fake_spec.rb +1 -1
  57. data/spec/bogus/fakes/fakes_classes_spec.rb +4 -4
  58. data/spec/bogus/fakes/faking_factories_spec.rb +4 -4
  59. data/spec/bogus/fakes/frozen_fakes_spec.rb +4 -4
  60. data/spec/bogus/fakes/instance_methods_spec.rb +5 -5
  61. data/spec/bogus/fakes/makes_ducks_spec.rb +3 -3
  62. data/spec/bogus/fakes/makes_substitute_methods_spec.rb +1 -1
  63. data/spec/bogus/fakes/overwriten_classes_spec.rb +3 -3
  64. data/spec/bogus/fakes/overwrites_classes_spec.rb +2 -2
  65. data/spec/bogus/fakes/registers_created_fakes_spec.rb +3 -3
  66. data/spec/bogus/fakes/resets_overwritten_classes_spec.rb +3 -3
  67. data/spec/bogus/fakes/stubbing_new_method_on_fake_class_spec.rb +25 -0
  68. data/spec/bogus/mocking_dsl_spec.rb +36 -36
  69. data/spec/bogus/ruby_2_1_support_spec.rb +38 -0
  70. data/spec/bogus/ruby_2_support_spec.rb +14 -64
  71. data/spec/bogus/stubbing/anything_spec.rb +5 -5
  72. data/spec/bogus/stubbing/double_spec.rb +2 -2
  73. data/spec/bogus/stubbing/have_received_matcher_spec.rb +11 -6
  74. data/spec/bogus/stubbing/interaction_spec.rb +7 -7
  75. data/spec/bogus/stubbing/multi_stubber_spec.rb +2 -2
  76. data/spec/bogus/stubbing/overwrites_methods_spec.rb +8 -8
  77. data/spec/bogus/stubbing/record_interactions_spec.rb +3 -3
  78. data/spec/bogus/stubbing/shadow_spec.rb +28 -28
  79. data/spec/bogus/stubbing/stubbing_existing_methods_on_fakes_spec.rb +50 -0
  80. data/spec/bogus/stubbing/tracks_existence_of_test_doubles_spec.rb +2 -2
  81. data/spec/bogus/stubbing/undefined_return_value_spec.rb +2 -2
  82. data/spec/spec_helper.rb +6 -1
  83. data/spec/support/shared_examples_for_keyword_arguments.rb +63 -0
  84. metadata +160 -160
  85. data/Gemfile.lock +0 -146
@@ -1,146 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bogus (0.1.4)
5
- dependor (>= 0.0.4)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- activemodel (3.2.13)
11
- activesupport (= 3.2.13)
12
- builder (~> 3.0.0)
13
- activerecord (3.2.13)
14
- activemodel (= 3.2.13)
15
- activesupport (= 3.2.13)
16
- arel (~> 3.0.2)
17
- tzinfo (~> 0.3.29)
18
- activerecord-nulldb-adapter (0.2.3)
19
- activerecord (>= 2.0.0)
20
- activesupport (3.2.13)
21
- i18n (= 0.6.1)
22
- multi_json (~> 1.0)
23
- archive-tar-minitar (0.5.2)
24
- arel (3.0.2)
25
- aruba (0.5.3)
26
- childprocess (>= 0.3.6)
27
- cucumber (>= 1.1.1)
28
- rspec-expectations (>= 2.7.0)
29
- builder (3.0.4)
30
- childprocess (0.3.9)
31
- ffi (~> 1.0, >= 1.0.11)
32
- coderay (1.0.9)
33
- colorize (0.5.8)
34
- coveralls (0.6.7)
35
- colorize
36
- multi_json (~> 1.3)
37
- rest-client
38
- simplecov (>= 0.7)
39
- thor
40
- cucumber (1.3.5)
41
- builder (>= 2.1.2)
42
- diff-lcs (>= 1.1.3)
43
- gherkin (~> 2.12.0)
44
- multi_json (~> 1.7.5)
45
- multi_test (>= 0.0.2)
46
- dependor (0.0.6)
47
- diff-lcs (1.2.4)
48
- ffi (1.9.0)
49
- ffi (1.9.0-java)
50
- formatador (0.2.4)
51
- gherkin (2.12.0)
52
- multi_json (~> 1.3)
53
- gherkin (2.12.0-java)
54
- multi_json (~> 1.3)
55
- growl (1.0.3)
56
- guard (1.8.1)
57
- formatador (>= 0.2.4)
58
- listen (>= 1.0.0)
59
- lumberjack (>= 1.0.2)
60
- pry (>= 0.9.10)
61
- thor (>= 0.14.6)
62
- guard-ctags-bundler (0.1.6)
63
- guard (>= 1.1)
64
- guard-cucumber (1.4.0)
65
- cucumber (>= 1.2.0)
66
- guard (>= 1.1.0)
67
- guard-rspec (3.0.2)
68
- guard (>= 1.8)
69
- rspec (~> 2.13)
70
- i18n (0.6.1)
71
- json (1.8.0)
72
- json (1.8.0-java)
73
- libnotify (0.8.1)
74
- ffi (>= 1.0.11)
75
- listen (1.2.2)
76
- rb-fsevent (>= 0.9.3)
77
- rb-inotify (>= 0.9)
78
- rb-kqueue (>= 0.2)
79
- lumberjack (1.0.4)
80
- method_source (0.8.1)
81
- mime-types (1.23)
82
- minitest (5.0.6)
83
- multi_json (1.7.7)
84
- multi_test (0.0.2)
85
- pry (0.9.12.2)
86
- coderay (~> 1.0.5)
87
- method_source (~> 0.8)
88
- slop (~> 3.4)
89
- pry (0.9.12.2-java)
90
- coderay (~> 1.0.5)
91
- method_source (~> 0.8)
92
- slop (~> 3.4)
93
- spoon (~> 0.0)
94
- rake (10.1.0)
95
- rb-fsevent (0.9.3)
96
- rb-inotify (0.9.0)
97
- ffi (>= 0.5.0)
98
- rb-kqueue (0.2.0)
99
- ffi (>= 0.5.0)
100
- relish (0.7)
101
- archive-tar-minitar (>= 0.5.2)
102
- json (>= 1.4.6)
103
- rest-client (>= 1.6.1)
104
- rest-client (1.6.7)
105
- mime-types (>= 1.16)
106
- rr (1.1.1)
107
- rspec (2.14.1)
108
- rspec-core (~> 2.14.0)
109
- rspec-expectations (~> 2.14.0)
110
- rspec-mocks (~> 2.14.0)
111
- rspec-core (2.14.4)
112
- rspec-expectations (2.14.0)
113
- diff-lcs (>= 1.1.3, < 2.0)
114
- rspec-mocks (2.14.1)
115
- simplecov (0.7.1)
116
- multi_json (~> 1.0)
117
- simplecov-html (~> 0.7.1)
118
- simplecov-html (0.7.1)
119
- slop (3.4.5)
120
- spoon (0.0.4)
121
- ffi
122
- thor (0.18.1)
123
- tzinfo (0.3.37)
124
-
125
- PLATFORMS
126
- java
127
- ruby
128
-
129
- DEPENDENCIES
130
- activerecord
131
- activerecord-nulldb-adapter
132
- aruba
133
- bogus!
134
- coveralls
135
- cucumber
136
- growl
137
- guard
138
- guard-ctags-bundler
139
- guard-cucumber
140
- guard-rspec
141
- libnotify
142
- minitest
143
- rake
144
- relish
145
- rr
146
- rspec