upjs-rails 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/dist/up.js +138 -81
  4. data/dist/up.min.js +2 -2
  5. data/lib/assets/javascripts/up/boot.js.coffee +3 -0
  6. data/lib/assets/javascripts/up/browser.js.coffee +42 -26
  7. data/lib/assets/javascripts/up/flow.js.coffee +6 -4
  8. data/lib/assets/javascripts/up/history.js.coffee +1 -1
  9. data/lib/assets/javascripts/up/modal.js.coffee +4 -4
  10. data/lib/assets/javascripts/up/motion.js.coffee +6 -4
  11. data/lib/assets/javascripts/up/proxy.js.coffee +2 -1
  12. data/lib/assets/javascripts/up/util.js.coffee +61 -32
  13. data/lib/assets/javascripts/up.js.coffee +1 -10
  14. data/lib/upjs/rails/version.rb +1 -1
  15. data/spec_app/config/environments/development.rb +1 -1
  16. data/spec_app/spec/javascripts/helpers/reset_path.js.coffee +3 -2
  17. data/spec_app/spec/javascripts/up/flow_spec.js.coffee +1 -1
  18. data/spec_app/spec/javascripts/up/history_spec.js.coffee +53 -47
  19. data/spec_app/spec/javascripts/up/link_spec.js.coffee +1 -1
  20. data/spec_app/spec/javascripts/up/motion_spec.js.coffee +4 -4
  21. data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +18 -9
  22. data/spec_app/vendor/assets/bower_components/jasmine/.bower.json +43 -7
  23. data/spec_app/vendor/assets/bower_components/jasmine/CONTRIBUTING.md +26 -17
  24. data/spec_app/vendor/assets/bower_components/jasmine/README.md +27 -18
  25. data/spec_app/vendor/assets/bower_components/jasmine/RELEASE.md +15 -5
  26. data/spec_app/vendor/assets/bower_components/jasmine/bower.json +41 -0
  27. data/spec_app/vendor/assets/bower_components/jasmine/lib/console/console.js +27 -3
  28. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot.js +10 -9
  29. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Player.js +0 -0
  30. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/{src → lib/jasmine_examples}/Song.js +0 -0
  31. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine-html.js +76 -20
  32. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.css +15 -18
  33. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.js +1399 -694
  34. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/json2.js +73 -62
  35. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/node_boot.js +1 -1
  36. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.js +29 -31
  37. data/spec_app/vendor/assets/bower_components/jasmine/package.json +18 -7
  38. data/spec_app/vendor/assets/bower_components/jasmine-ajax/.bower.json +11 -13
  39. data/spec_app/vendor/assets/bower_components/jasmine-ajax/MIT.LICENSE +1 -1
  40. data/spec_app/vendor/assets/bower_components/jasmine-ajax/README.markdown +198 -125
  41. data/spec_app/vendor/assets/bower_components/jasmine-ajax/bower.json +9 -10
  42. data/spec_app/vendor/assets/bower_components/jasmine-ajax/lib/mock-ajax.js +250 -59
  43. data/spec_app/vendor/assets/bower_components/jasmine-ajax/package.json +9 -4
  44. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.0.2.md +50 -0
  45. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.99.md +14 -0
  46. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.0.md +28 -0
  47. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.0.md +24 -0
  48. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.1.md +23 -0
  49. data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.2.0.md +20 -0
  50. data/spec_app/vendor/assets/bower_components/jasmine-fixture/.bower.json +4 -4
  51. data/spec_app/vendor/assets/bower_components/jasmine-fixture/bower.json +1 -1
  52. data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.js +4 -4
  53. data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.min.js +2 -2
  54. data/spec_app/vendor/assets/bower_components/jasmine-jquery/.bower.json +4 -4
  55. data/spec_app/vendor/assets/bower_components/jasmine-jquery/Gruntfile.js +17 -1
  56. data/spec_app/vendor/assets/bower_components/jasmine-jquery/{MIT.LICENSE → LICENSE} +0 -0
  57. data/spec_app/vendor/assets/bower_components/jasmine-jquery/README.md +14 -9
  58. data/spec_app/vendor/assets/bower_components/jasmine-jquery/bower.json +0 -1
  59. data/spec_app/vendor/assets/bower_components/jasmine-jquery/lib/jasmine-jquery.js +35 -10
  60. data/spec_app/vendor/assets/bower_components/jasmine-jquery/package.json +33 -24
  61. data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_checkbox_with_checked.html +6 -0
  62. data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/suites/jasmine-jquery-spec.js +61 -1
  63. data/spec_app/vendor/assets/bower_components/jquery/.bower.json +5 -4
  64. data/spec_app/vendor/assets/bower_components/jquery/bower.json +2 -1
  65. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.js +9 -4
  66. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  67. data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  68. data/spec_app/vendor/assets/bower_components/jquery/src/core.js +6 -1
  69. metadata +14 -175
  70. data/spec_app/vendor/assets/bower_components/jasmine/.gitignore +0 -24
  71. data/spec_app/vendor/assets/bower_components/jasmine/.gitmodules +0 -3
  72. data/spec_app/vendor/assets/bower_components/jasmine/.jshintrc +0 -9
  73. data/spec_app/vendor/assets/bower_components/jasmine/.npmignore +0 -21
  74. data/spec_app/vendor/assets/bower_components/jasmine/.rspec +0 -1
  75. data/spec_app/vendor/assets/bower_components/jasmine/.travis.yml +0 -51
  76. data/spec_app/vendor/assets/bower_components/jasmine/Gemfile +0 -12
  77. data/spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js +0 -53
  78. data/spec_app/vendor/assets/bower_components/jasmine/Rakefile +0 -18
  79. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.0.0.zip +0 -0
  80. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.1.0.zip +0 -0
  81. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.2.0.zip +0 -0
  82. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.0.zip +0 -0
  83. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-1.3.1.zip +0 -0
  84. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.0.zip +0 -0
  85. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.1.zip +0 -0
  86. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.2.zip +0 -0
  87. data/spec_app/vendor/assets/bower_components/jasmine/dist/jasmine-standalone-2.0.3.zip +0 -0
  88. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compass.js +0 -10
  89. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/compress.js +0 -66
  90. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/concat.js +0 -61
  91. data/spec_app/vendor/assets/bower_components/jasmine/grunt/config/jshint.js +0 -11
  92. data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/build_standalone.js +0 -31
  93. data/spec_app/vendor/assets/bower_components/jasmine/grunt/tasks/version.js +0 -14
  94. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/SpecRunner.html.jst +0 -26
  95. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/licenseBanner.js.jst +0 -22
  96. data/spec_app/vendor/assets/bower_components/jasmine/grunt/templates/version.rb.jst +0 -9
  97. data/spec_app/vendor/assets/bower_components/jasmine/images/__init__.py +0 -0
  98. data/spec_app/vendor/assets/bower_components/jasmine/jasmine-core.gemspec +0 -23
  99. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/__init__.py +0 -1
  100. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/boot.js +0 -120
  101. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot/node_boot.js +0 -19
  102. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/core.py +0 -60
  103. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/PlayerSpec.js +0 -60
  104. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/spec/SpecHelper.js +0 -15
  105. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/PlayerSpec.js +0 -58
  106. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/spec/SpecHelper.js +0 -15
  107. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Player.js +0 -22
  108. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/src/Song.js +0 -7
  109. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/version.rb +0 -9
  110. data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.rb +0 -53
  111. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.1.md +0 -70
  112. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/2.0.2.md +0 -25
  113. data/spec_app/vendor/assets/bower_components/jasmine/release_notes/20.md +0 -179
  114. data/spec_app/vendor/assets/bower_components/jasmine/setup.py +0 -47
  115. data/spec_app/vendor/assets/bower_components/jasmine/spec/console/ConsoleReporterSpec.js +0 -239
  116. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/AnySpec.js +0 -46
  117. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/CallTrackerSpec.js +0 -105
  118. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ClockSpec.js +0 -445
  119. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/DelayedFunctionSchedulerSpec.js +0 -246
  120. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/EnvSpec.js +0 -85
  121. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionFormatterSpec.js +0 -63
  122. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExceptionsSpec.js +0 -68
  123. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationResultSpec.js +0 -61
  124. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ExpectationSpec.js +0 -427
  125. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/JsApiReporterSpec.js +0 -214
  126. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/MockDateSpec.js +0 -199
  127. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ObjectContainingSpec.js +0 -70
  128. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/PrettyPrintSpec.js +0 -156
  129. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/QueueRunnerSpec.js +0 -271
  130. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/ReportDispatcherSpec.js +0 -40
  131. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpecSpec.js +0 -260
  132. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpySpec.js +0 -67
  133. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SpyStrategySpec.js +0 -111
  134. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/SuiteSpec.js +0 -216
  135. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/TimerSpec.js +0 -31
  136. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/UtilSpec.js +0 -28
  137. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/CustomMatchersSpec.js +0 -149
  138. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/EnvSpec.js +0 -506
  139. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/integration/SpecRunningSpec.js +0 -306
  140. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/matchersUtilSpec.js +0 -239
  141. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeCloseToSpec.js +0 -51
  142. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeDefinedSpec.js +0 -18
  143. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeFalsySpec.js +0 -38
  144. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeGreaterThanSpec.js +0 -20
  145. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeLessThanSpec.js +0 -20
  146. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNaNSpec.js +0 -37
  147. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeNullSpec.js +0 -17
  148. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeSpec.js +0 -17
  149. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeTruthySpec.js +0 -38
  150. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toBeUndefinedSpec.js +0 -18
  151. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toContainSpec.js +0 -26
  152. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toEqualSpec.js +0 -28
  153. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledSpec.js +0 -47
  154. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toHaveBeenCalledWithSpec.js +0 -66
  155. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toMatchSpec.js +0 -34
  156. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowErrorSpec.js +0 -280
  157. data/spec_app/vendor/assets/bower_components/jasmine/spec/core/matchers/toThrowSpec.js +0 -99
  158. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/BrowserFlags.js +0 -23
  159. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/defineJasmineUnderTest.js +0 -7
  160. data/spec_app/vendor/assets/bower_components/jasmine/spec/helpers/nodeDefineJasmineUnderTest.js +0 -33
  161. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlReporterSpec.js +0 -616
  162. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js +0 -18
  163. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/MatchersHtmlSpec.js +0 -37
  164. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/PrettyPrintHtmlSpec.js +0 -15
  165. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/QueryStringSpec.js +0 -43
  166. data/spec_app/vendor/assets/bower_components/jasmine/spec/html/ResultsNodeSpec.js +0 -62
  167. data/spec_app/vendor/assets/bower_components/jasmine/spec/javascripts/support/jasmine_selenium_runner.yml +0 -16
  168. data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/large_object_test.js +0 -36
  169. data/spec_app/vendor/assets/bower_components/jasmine/spec/performance/performance_test.js +0 -10
  170. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.json +0 -9
  171. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine-performance.yml +0 -9
  172. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.json +0 -10
  173. data/spec_app/vendor/assets/bower_components/jasmine/spec/support/jasmine.yml +0 -25
  174. data/spec_app/vendor/assets/bower_components/jasmine/src/console/ConsoleReporter.js +0 -131
  175. data/spec_app/vendor/assets/bower_components/jasmine/src/console/requireConsole.js +0 -12
  176. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Any.js +0 -36
  177. data/spec_app/vendor/assets/bower_components/jasmine/src/core/CallTracker.js +0 -50
  178. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Clock.js +0 -113
  179. data/spec_app/vendor/assets/bower_components/jasmine/src/core/DelayedFunctionScheduler.js +0 -145
  180. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Env.js +0 -341
  181. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js +0 -29
  182. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Expectation.js +0 -107
  183. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ExpectationResult.js +0 -45
  184. data/spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js +0 -73
  185. data/spec_app/vendor/assets/bower_components/jasmine/src/core/MockDate.js +0 -81
  186. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ObjectContaining.js +0 -34
  187. data/spec_app/vendor/assets/bower_components/jasmine/src/core/PrettyPrinter.js +0 -137
  188. data/spec_app/vendor/assets/bower_components/jasmine/src/core/QueueRunner.js +0 -92
  189. data/spec_app/vendor/assets/bower_components/jasmine/src/core/ReportDispatcher.js +0 -35
  190. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Spec.js +0 -126
  191. data/spec_app/vendor/assets/bower_components/jasmine/src/core/SpyStrategy.js +0 -51
  192. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Suite.js +0 -92
  193. data/spec_app/vendor/assets/bower_components/jasmine/src/core/Timer.js +0 -22
  194. data/spec_app/vendor/assets/bower_components/jasmine/src/core/base.js +0 -102
  195. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/matchersUtil.js +0 -181
  196. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/requireMatchers.js +0 -29
  197. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBe.js +0 -13
  198. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeCloseTo.js +0 -18
  199. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeDefined.js +0 -13
  200. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeFalsy.js +0 -13
  201. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeGreaterThan.js +0 -15
  202. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeLessThan.js +0 -14
  203. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNaN.js +0 -22
  204. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeNull.js +0 -14
  205. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeTruthy.js +0 -14
  206. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toBeUndefined.js +0 -14
  207. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toContain.js +0 -16
  208. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toEqual.js +0 -20
  209. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalled.js +0 -28
  210. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toHaveBeenCalledWith.js +0 -33
  211. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toMatch.js +0 -16
  212. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrow.js +0 -46
  213. data/spec_app/vendor/assets/bower_components/jasmine/src/core/matchers/toThrowError.js +0 -156
  214. data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireCore.js +0 -39
  215. data/spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js +0 -59
  216. data/spec_app/vendor/assets/bower_components/jasmine/src/core/util.js +0 -44
  217. data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlReporter.js +0 -280
  218. data/spec_app/vendor/assets/bower_components/jasmine/src/html/HtmlSpecFilter.js +0 -12
  219. data/spec_app/vendor/assets/bower_components/jasmine/src/html/QueryString.js +0 -47
  220. data/spec_app/vendor/assets/bower_components/jasmine/src/html/ResultsNode.js +0 -19
  221. data/spec_app/vendor/assets/bower_components/jasmine/src/html/_HTMLReporter.scss +0 -355
  222. data/spec_app/vendor/assets/bower_components/jasmine/src/html/jasmine.scss +0 -1
  223. data/spec_app/vendor/assets/bower_components/jasmine/src/html/requireHtml.js +0 -6
  224. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/example_project_jasmine_tags.html.erb +0 -3
  225. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.js.erb +0 -7
  226. data/spec_app/vendor/assets/bower_components/jasmine/src/templates/version.rb.erb +0 -6
  227. data/spec_app/vendor/assets/bower_components/jasmine/src/version.js +0 -3
  228. data/spec_app/vendor/assets/bower_components/jasmine/travis-core-script.sh +0 -14
  229. data/spec_app/vendor/assets/bower_components/jasmine/travis-docs-script.sh +0 -5
  230. data/spec_app/vendor/assets/bower_components/jasmine/travis-node-script.sh +0 -6
  231. data/spec_app/vendor/assets/bower_components/jasmine-ajax/Gruntfile.js +0 -63
  232. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/boot.js +0 -11
  233. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/fakeRequest.js +0 -262
  234. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/mockAjax.js +0 -45
  235. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/paramParser.js +0 -56
  236. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestStub.js +0 -42
  237. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requestTracker.js +0 -51
  238. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/requireAjax.js +0 -44
  239. data/spec_app/vendor/assets/bower_components/jasmine-ajax/src/stubTracker.js +0 -24
@@ -1,214 +0,0 @@
1
- xdescribe('JsApiReporter (integration specs)', function() {
2
- describe('results', function() {
3
- var reporter, spec1, spec2;
4
- var env;
5
- var suite, nestedSuite, nestedSpec;
6
-
7
- beforeEach(function() {
8
- env = new j$.Env();
9
-
10
- suite = env.describe("top-level suite", function() {
11
- spec1 = env.it("spec 1", function() {
12
- this.expect(true).toEqual(true);
13
-
14
- });
15
-
16
- spec2 = env.it("spec 2", function() {
17
- this.expect(true).toEqual(false);
18
- });
19
-
20
- nestedSuite = env.describe("nested suite", function() {
21
- nestedSpec = env.it("nested spec", function() {
22
- expect(true).toEqual(true);
23
- });
24
- });
25
-
26
- });
27
-
28
- reporter = new j$.JsApiReporter({});
29
- env.addReporter(reporter);
30
-
31
- env.execute();
32
-
33
- });
34
-
35
- it('results() should return a hash of all results, indexed by spec id', function() {
36
- var expectedSpec1Results = {
37
- result: "passed"
38
- },
39
- expectedSpec2Results = {
40
- result: "failed"
41
- };
42
- expect(reporter.results()[spec1.id].result).toEqual('passed');
43
- expect(reporter.results()[spec2.id].result).toEqual('failed');
44
- });
45
-
46
- it("should return nested suites as children of their parents", function() {
47
- expect(reporter.suites()).toEqual([
48
- { id: 0, name: 'top-level suite', type: 'suite',
49
- children: [
50
- { id: 0, name: 'spec 1', type: 'spec', children: [ ] },
51
- { id: 1, name: 'spec 2', type: 'spec', children: [ ] },
52
- { id: 1, name: 'nested suite', type: 'suite',
53
- children: [
54
- { id: 2, name: 'nested spec', type: 'spec', children: [ ] }
55
- ]
56
- },
57
- ]
58
- }
59
- ]);
60
- });
61
-
62
- describe("#summarizeResult_", function() {
63
- it("should summarize a passing result", function() {
64
- var result = reporter.results()[spec1.id];
65
- var summarizedResult = reporter.summarizeResult_(result);
66
- expect(summarizedResult.result).toEqual('passed');
67
- expect(summarizedResult.messages.length).toEqual(0);
68
- });
69
-
70
- it("should have a stack trace for failing specs", function() {
71
- var result = reporter.results()[spec2.id];
72
- var summarizedResult = reporter.summarizeResult_(result);
73
- expect(summarizedResult.result).toEqual('failed');
74
- expect(summarizedResult.messages[0].trace.stack).toEqual(result.messages[0].trace.stack);
75
- });
76
-
77
- });
78
- });
79
- });
80
-
81
-
82
- describe("JsApiReporter", function() {
83
-
84
- it("knows when a full environment is started", function() {
85
- var reporter = new j$.JsApiReporter({});
86
-
87
- expect(reporter.started).toBe(false);
88
- expect(reporter.finished).toBe(false);
89
-
90
- reporter.jasmineStarted();
91
-
92
- expect(reporter.started).toBe(true);
93
- expect(reporter.finished).toBe(false);
94
- });
95
-
96
- it("knows when a full environment is done", function() {
97
- var reporter = new j$.JsApiReporter({});
98
-
99
- expect(reporter.started).toBe(false);
100
- expect(reporter.finished).toBe(false);
101
-
102
- reporter.jasmineStarted();
103
- reporter.jasmineDone({});
104
-
105
- expect(reporter.finished).toBe(true);
106
- });
107
-
108
- it("defaults to 'loaded' status", function() {
109
- var reporter = new j$.JsApiReporter({});
110
-
111
- expect(reporter.status()).toEqual('loaded');
112
- });
113
-
114
- it("reports 'started' when Jasmine has started", function() {
115
- var reporter = new j$.JsApiReporter({});
116
-
117
- reporter.jasmineStarted();
118
-
119
- expect(reporter.status()).toEqual('started');
120
- });
121
-
122
- it("reports 'done' when Jasmine is done", function() {
123
- var reporter = new j$.JsApiReporter({});
124
-
125
- reporter.jasmineDone({});
126
-
127
- expect(reporter.status()).toEqual('done');
128
- });
129
-
130
- it("tracks a suite", function() {
131
- var reporter = new j$.JsApiReporter({});
132
-
133
- reporter.suiteStarted({
134
- id: 123,
135
- description: "A suite"
136
- });
137
-
138
- var suites = reporter.suites();
139
-
140
- expect(suites).toEqual({123: {id: 123, description: "A suite"}});
141
-
142
- reporter.suiteDone({
143
- id: 123,
144
- description: "A suite",
145
- status: 'passed'
146
- });
147
-
148
- expect(suites).toEqual({123: {id: 123, description: "A suite", status: 'passed'}});
149
- });
150
-
151
- describe("#specResults", function() {
152
- var reporter, specResult1, specResult2;
153
- beforeEach(function() {
154
- reporter = new j$.JsApiReporter({});
155
- specResult1 = {
156
- id: 1,
157
- description: "A spec"
158
- };
159
- specResult2 = {
160
- id: 2,
161
- description: "Another spec"
162
- };
163
-
164
- reporter.specDone(specResult1);
165
- reporter.specDone(specResult2);
166
- });
167
-
168
- it("should return a slice of results", function() {
169
- expect(reporter.specResults(0, 1)).toEqual([specResult1]);
170
- expect(reporter.specResults(1, 1)).toEqual([specResult2]);
171
- });
172
-
173
- describe("when the results do not exist", function() {
174
- it("should return a slice of shorter length", function() {
175
- expect(reporter.specResults(0, 3)).toEqual([specResult1, specResult2]);
176
- expect(reporter.specResults(2, 3)).toEqual([]);
177
- });
178
- });
179
- });
180
-
181
- describe("#executionTime", function() {
182
- it("should start the timer when jasmine starts", function() {
183
- var timerSpy = jasmine.createSpyObj('timer', ['start', 'elapsed']),
184
- reporter = new j$.JsApiReporter({
185
- timer: timerSpy
186
- });
187
-
188
- reporter.jasmineStarted();
189
- expect(timerSpy.start).toHaveBeenCalled();
190
- });
191
-
192
- it("should return the time it took the specs to run, in ms", function() {
193
- var timerSpy = jasmine.createSpyObj('timer', ['start', 'elapsed']),
194
- reporter = new j$.JsApiReporter({
195
- timer: timerSpy
196
- });
197
-
198
- timerSpy.elapsed.and.returnValue(1000);
199
- reporter.jasmineDone();
200
- expect(reporter.executionTime()).toEqual(1000);
201
- });
202
-
203
- describe("when the specs haven't finished being run", function() {
204
- it("should return undefined", function() {
205
- var timerSpy = jasmine.createSpyObj('timer', ['start', 'elapsed']),
206
- reporter = new j$.JsApiReporter({
207
- timer: timerSpy
208
- });
209
-
210
- expect(reporter.executionTime()).toBeUndefined();
211
- });
212
- });
213
- });
214
- });
@@ -1,199 +0,0 @@
1
- describe("FakeDate", function() {
2
- it("does not fail if no global date is found", function() {
3
- var fakeGlobal = {},
4
- mockDate = new j$.MockDate(fakeGlobal);
5
-
6
- expect(function() {
7
- mockDate.install();
8
- mockDate.tick(0);
9
- mockDate.uninstall();
10
- }).not.toThrow();
11
- });
12
-
13
- it("replaces the global Date when it is installed", function() {
14
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
15
- return {
16
- getTime: function() {}
17
- }
18
- }),
19
- fakeGlobal = { Date: globalDate },
20
- mockDate = new j$.MockDate(fakeGlobal);
21
-
22
- expect(fakeGlobal.Date).toEqual(globalDate);
23
- mockDate.install();
24
-
25
- expect(fakeGlobal.Date).not.toEqual(globalDate);
26
- });
27
-
28
- it("replaces the global Date on uninstall", function() {
29
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
30
- return {
31
- getTime: function() {}
32
- }
33
- }),
34
- fakeGlobal = { Date: globalDate },
35
- mockDate = new j$.MockDate(fakeGlobal);
36
-
37
- mockDate.install();
38
- mockDate.uninstall();
39
-
40
- expect(fakeGlobal.Date).toEqual(globalDate);
41
- });
42
-
43
- it("takes the current time as the base when installing without parameters", function() {
44
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
45
- return {
46
- getTime: function() {
47
- return 1000;
48
- }
49
- }
50
- }),
51
- fakeGlobal = { Date: globalDate },
52
- mockDate = new j$.MockDate(fakeGlobal);
53
-
54
- mockDate.install();
55
-
56
- globalDate.calls.reset();
57
- new fakeGlobal.Date();
58
- expect(globalDate).toHaveBeenCalledWith(1000);
59
- });
60
-
61
- it("can accept a date as time base when installing", function() {
62
- var fakeGlobal = { Date: Date },
63
- mockDate = new j$.MockDate(fakeGlobal),
64
- baseDate = new Date();
65
-
66
- spyOn(baseDate, 'getTime').and.returnValue(123);
67
- mockDate.install(baseDate);
68
-
69
- expect(new fakeGlobal.Date().getTime()).toEqual(123);
70
- });
71
-
72
- it("makes real dates", function() {
73
- var fakeGlobal = { Date: Date },
74
- mockDate = new j$.MockDate(fakeGlobal);
75
-
76
- mockDate.install();
77
- expect(new fakeGlobal.Date()).toEqual(jasmine.any(Date));
78
- });
79
-
80
- it("fakes current time when using Date.now()", function() {
81
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
82
- return {
83
- getTime: function() {
84
- return 1000;
85
- }
86
- }
87
- }),
88
- fakeGlobal = { Date: globalDate };
89
-
90
- globalDate.now = function() {};
91
- var mockDate = new j$.MockDate(fakeGlobal);
92
-
93
- mockDate.install();
94
-
95
- expect(fakeGlobal.Date.now()).toEqual(1000);
96
- });
97
-
98
- it("does not stub Date.now() if it doesn't already exist", function() {
99
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
100
- return {
101
- getTime: function() {
102
- return 1000;
103
- }
104
- }
105
- }),
106
- fakeGlobal = { Date: globalDate },
107
- mockDate = new j$.MockDate(fakeGlobal);
108
-
109
- mockDate.install();
110
-
111
- expect(fakeGlobal.Date.now).toThrowError("Browser does not support Date.now()");
112
- });
113
-
114
- it("makes time passes using tick", function() {
115
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
116
- return {
117
- getTime: function() {
118
- return 1000;
119
- }
120
- }
121
- }),
122
- fakeGlobal = { Date: globalDate };
123
-
124
- globalDate.now = function() {};
125
- var mockDate = new j$.MockDate(fakeGlobal);
126
-
127
- mockDate.install();
128
-
129
- mockDate.tick(100);
130
-
131
- expect(fakeGlobal.Date.now()).toEqual(1100);
132
-
133
- mockDate.tick(1000);
134
-
135
- expect(fakeGlobal.Date.now()).toEqual(2100);
136
- });
137
-
138
- it("allows to increase 0 milliseconds using tick", function() {
139
- var globalDate = jasmine.createSpy("global Date").and.callFake(function() {
140
- return {
141
- getTime: function() {
142
- return 1000;
143
- }
144
- }
145
- }),
146
- fakeGlobal = { Date: globalDate };
147
-
148
- globalDate.now = function() {};
149
- var mockDate = new j$.MockDate(fakeGlobal);
150
-
151
- mockDate.install();
152
-
153
- mockDate.tick(0);
154
- expect(fakeGlobal.Date.now()).toEqual(1000);
155
-
156
- mockDate.tick();
157
- expect(fakeGlobal.Date.now()).toEqual(1000);
158
- });
159
-
160
- it("allows creation of a Date in a different time than the mocked time", function() {
161
- var fakeGlobal = { Date: Date },
162
- mockDate = new j$.MockDate(fakeGlobal);
163
-
164
- mockDate.install();
165
-
166
- var otherDate = new fakeGlobal.Date(2013, 9, 23, 0, 0, 1, 0);
167
- expect(otherDate.getTime()).toEqual(new Date(2013, 9, 23, 0, 0, 1, 0).getTime());
168
- });
169
-
170
- it("allows creation of a Date that isn't fully specified", function() {
171
- var fakeGlobal = { Date: Date },
172
- mockDate = new j$.MockDate(fakeGlobal);
173
-
174
- mockDate.install();
175
-
176
- var otherDate = new fakeGlobal.Date(2013, 9, 23);
177
- expect(otherDate.getTime()).toEqual(new Date(2013, 9, 23).getTime());
178
- });
179
-
180
- it('allows creation of a Date with millis', function() {
181
- var fakeGlobal = { Date: Date },
182
- mockDate = new j$.MockDate(fakeGlobal),
183
- now = new Date(2014, 3, 15).getTime();
184
-
185
- mockDate.install();
186
-
187
- var otherDate = new fakeGlobal.Date(now);
188
- expect(otherDate.getTime()).toEqual(now);
189
- });
190
-
191
- it("copies all Date properties to the mocked date", function() {
192
- var fakeGlobal = { Date: Date },
193
- mockDate = new j$.MockDate(fakeGlobal);
194
-
195
- mockDate.install();
196
-
197
- expect(fakeGlobal.Date.UTC(2013, 9, 23)).toEqual(Date.UTC(2013, 9, 23));
198
- });
199
- });
@@ -1,70 +0,0 @@
1
- describe("ObjectContaining", function() {
2
-
3
- it("matches any actual to an empty object", function() {
4
- var containing = new j$.ObjectContaining({});
5
-
6
- expect(containing.jasmineMatches("foo")).toBe(true);
7
- });
8
-
9
- it("does not match an empty object actual", function() {
10
- var containing = new j$.ObjectContaining("foo");
11
-
12
- expect(function() {
13
- containing.jasmineMatches({})
14
- }).toThrowError(/not 'foo'/)
15
- });
16
-
17
- it("matches when the key/value pair is present in the actual", function() {
18
- var containing = new j$.ObjectContaining({foo: "fooVal"});
19
-
20
- expect(containing.jasmineMatches({foo: "fooVal", bar: "barVal"})).toBe(true);
21
- });
22
-
23
- it("does not match when the key/value pair is not present in the actual", function() {
24
- var containing = new j$.ObjectContaining({foo: "fooVal"});
25
-
26
- expect(containing.jasmineMatches({bar: "barVal", quux: "quuxVal"})).toBe(false);
27
- });
28
-
29
- it("does not match when the key is present but the value is different in the actual", function() {
30
- var containing = new j$.ObjectContaining({foo: "other"});
31
-
32
- expect(containing.jasmineMatches({foo: "fooVal", bar: "barVal"})).toBe(false);
33
- });
34
-
35
- it("mismatchValues parameter must return array with mismatched reason", function() {
36
- var containing = new j$.ObjectContaining({foo: "other"});
37
-
38
- var mismatchKeys = [];
39
- var mismatchValues = [];
40
-
41
- containing.jasmineMatches({foo: "fooVal", bar: "barVal"}, mismatchKeys, mismatchValues);
42
-
43
- expect(mismatchValues.length).toBe(1);
44
- expect(mismatchValues[0]).toEqual("'foo' was 'fooVal' in actual, but was 'other' in expected.");
45
- });
46
-
47
- it("adds keys in expected but not actual to the mismatchKeys parameter", function() {
48
- var containing = new j$.ObjectContaining({foo: "fooVal"});
49
-
50
- var mismatchKeys = [];
51
- var mismatchValues = [];
52
-
53
- containing.jasmineMatches({bar: "barVal"}, mismatchKeys, mismatchValues);
54
-
55
- expect(mismatchKeys.length).toBe(1);
56
- expect(mismatchKeys[0]).toEqual("expected has key 'foo', but missing from actual.");
57
- });
58
-
59
- it("jasmineToString's itself", function() {
60
- var containing = new j$.ObjectContaining({});
61
-
62
- expect(containing.jasmineToString()).toMatch("<jasmine.objectContaining");
63
- });
64
-
65
- it("matches recursively", function() {
66
- var containing = new j$.ObjectContaining({one: new j$.ObjectContaining({two: {}})});
67
-
68
- expect(containing.jasmineMatches({one: {two: {}}})).toBe(true);
69
- });
70
- });
@@ -1,156 +0,0 @@
1
- describe("j$.pp", function () {
2
- it("should wrap strings in single quotes", function() {
3
- expect(j$.pp("some string")).toEqual("'some string'");
4
- expect(j$.pp("som' string")).toEqual("'som' string'");
5
- });
6
-
7
- it("should stringify primitives properly", function() {
8
- expect(j$.pp(true)).toEqual("true");
9
- expect(j$.pp(false)).toEqual("false");
10
- expect(j$.pp(null)).toEqual("null");
11
- expect(j$.pp(jasmine.undefined)).toEqual("undefined");
12
- expect(j$.pp(3)).toEqual("3");
13
- expect(j$.pp(-3.14)).toEqual("-3.14");
14
- expect(j$.pp(-0)).toEqual("-0");
15
- });
16
-
17
- it("should stringify arrays properly", function() {
18
- expect(j$.pp([1, 2])).toEqual("[ 1, 2 ]");
19
- expect(j$.pp([1, 'foo', {}, jasmine.undefined, null])).toEqual("[ 1, 'foo', { }, undefined, null ]");
20
- });
21
-
22
- it("should indicate circular array references", function() {
23
- var array1 = [1, 2];
24
- var array2 = [array1];
25
- array1.push(array2);
26
- expect(j$.pp(array1)).toEqual("[ 1, 2, [ <circular reference: Array> ] ]");
27
- });
28
-
29
- it("should stringify objects properly", function() {
30
- expect(j$.pp({foo: 'bar'})).toEqual("{ foo: 'bar' }");
31
- expect(j$.pp({foo:'bar', baz:3, nullValue: null, undefinedValue: jasmine.undefined})).toEqual("{ foo: 'bar', baz: 3, nullValue: null, undefinedValue: undefined }");
32
- expect(j$.pp({foo: function () {
33
- }, bar: [1, 2, 3]})).toEqual("{ foo: Function, bar: [ 1, 2, 3 ] }");
34
- });
35
-
36
- it("should not include inherited properties when stringifying an object", function() {
37
- var SomeClass = function() {};
38
- SomeClass.prototype.foo = "inherited foo";
39
- var instance = new SomeClass();
40
- instance.bar = "my own bar";
41
- expect(j$.pp(instance)).toEqual("{ bar: 'my own bar' }");
42
- });
43
-
44
- it("should not recurse objects and arrays more deeply than j$.MAX_PRETTY_PRINT_DEPTH", function() {
45
- var originalMaxDepth = j$.MAX_PRETTY_PRINT_DEPTH;
46
- var nestedObject = { level1: { level2: { level3: { level4: "leaf" } } } };
47
- var nestedArray = [1, [2, [3, [4, "leaf"]]]];
48
-
49
- try {
50
- j$.MAX_PRETTY_PRINT_DEPTH = 2;
51
- expect(j$.pp(nestedObject)).toEqual("{ level1: { level2: Object } }");
52
- expect(j$.pp(nestedArray)).toEqual("[ 1, [ 2, Array ] ]");
53
-
54
- j$.MAX_PRETTY_PRINT_DEPTH = 3;
55
- expect(j$.pp(nestedObject)).toEqual("{ level1: { level2: { level3: Object } } }");
56
- expect(j$.pp(nestedArray)).toEqual("[ 1, [ 2, [ 3, Array ] ] ]");
57
-
58
- j$.MAX_PRETTY_PRINT_DEPTH = 4;
59
- expect(j$.pp(nestedObject)).toEqual("{ level1: { level2: { level3: { level4: 'leaf' } } } }");
60
- expect(j$.pp(nestedArray)).toEqual("[ 1, [ 2, [ 3, [ 4, 'leaf' ] ] ] ]");
61
- } finally {
62
- j$.MAX_PRETTY_PRINT_DEPTH = originalMaxDepth;
63
- }
64
- });
65
-
66
- it("should stringify immutable circular objects", function(){
67
- if(Object.freeze){
68
- var frozenObject = {foo: {bar: 'baz'}};
69
- frozenObject.circular = frozenObject;
70
- frozenObject = Object.freeze(frozenObject);
71
- expect(j$.pp(frozenObject)).toEqual("{ foo: { bar: 'baz' }, circular: <circular reference: Object> }");
72
- }
73
- });
74
-
75
- it("should truncate arrays that are longer than j$.MAX_PRETTY_PRINT_ARRAY_LENGTH", function() {
76
- var originalMaxLength = j$.MAX_PRETTY_PRINT_ARRAY_LENGTH;
77
- var array = [1, 2, 3];
78
-
79
- try {
80
- j$.MAX_PRETTY_PRINT_ARRAY_LENGTH = 2;
81
- expect(j$.pp(array)).toEqual("[ 1, 2, ... ]");
82
- } finally {
83
- j$.MAX_PRETTY_PRINT_ARRAY_LENGTH = originalMaxLength;
84
- }
85
- });
86
-
87
- it("should stringify RegExp objects properly", function() {
88
- expect(j$.pp(/x|y|z/)).toEqual("/x|y|z/");
89
- });
90
-
91
- it("should indicate circular object references", function() {
92
- var sampleValue = {foo: 'hello'};
93
- sampleValue.nested = sampleValue;
94
- expect(j$.pp(sampleValue)).toEqual("{ foo: 'hello', nested: <circular reference: Object> }");
95
- });
96
-
97
- it("should indicate getters on objects as such", function() {
98
- var sampleValue = {id: 1};
99
- if (sampleValue.__defineGetter__) {
100
- //not supported in IE!
101
- sampleValue.__defineGetter__('calculatedValue', function() {
102
- throw new Error("don't call me!");
103
- });
104
- }
105
- if (sampleValue.__defineGetter__) {
106
- expect(j$.pp(sampleValue)).toEqual("{ id: 1, calculatedValue: <getter> }");
107
- }
108
- else {
109
- expect(j$.pp(sampleValue)).toEqual("{ id: 1 }");
110
- }
111
- });
112
-
113
-
114
- it('should not do HTML escaping of strings', function() {
115
- expect(j$.pp('some <b>html string</b> &', false)).toEqual('\'some <b>html string</b> &\'');
116
- });
117
-
118
- it("should abbreviate the global (usually window) object", function() {
119
- expect(j$.pp(jasmine.getGlobal())).toEqual("<global>");
120
- });
121
-
122
- it("should stringify Date objects properly", function() {
123
- var now = new Date();
124
- expect(j$.pp(now)).toEqual("Date(" + now.toString() + ")");
125
- });
126
-
127
- it("should stringify spy objects properly", function() {
128
- var TestObject = {
129
- someFunction: function() {}
130
- },
131
- env = new j$.Env();
132
-
133
- env.spyOn(TestObject, 'someFunction');
134
- expect(j$.pp(TestObject.someFunction)).toEqual("spy on someFunction");
135
-
136
- expect(j$.pp(j$.createSpy("something"))).toEqual("spy on something");
137
- });
138
-
139
- it("should stringify objects that implement jasmineToString", function () {
140
- var obj = {
141
- jasmineToString: function () { return "strung"; }
142
- };
143
-
144
- expect(j$.pp(obj)).toEqual("strung");
145
- });
146
-
147
- it("should handle objects with null prototype", function() {
148
- if (jasmine.getEnv().ieVersion < 9) { return; }
149
-
150
- var obj = Object.create(null);
151
- obj.foo = 'bar';
152
-
153
- expect(j$.pp(obj)).toEqual("{ foo: 'bar' }");
154
- });
155
- });
156
-