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,111 +0,0 @@
1
- describe("SpyStrategy", function() {
2
-
3
- it("defaults its name to unknown", function() {
4
- var spyStrategy = new j$.SpyStrategy();
5
-
6
- expect(spyStrategy.identity()).toEqual("unknown");
7
- });
8
-
9
- it("takes a name", function() {
10
- var spyStrategy = new j$.SpyStrategy({name: "foo"});
11
-
12
- expect(spyStrategy.identity()).toEqual("foo");
13
- });
14
-
15
- it("stubs an original function, if provided", function() {
16
- var originalFn = jasmine.createSpy("original"),
17
- spyStrategy = new j$.SpyStrategy({fn: originalFn});
18
-
19
- spyStrategy.exec();
20
-
21
- expect(originalFn).not.toHaveBeenCalled();
22
- });
23
-
24
- it("allows an original function to be called, passed through the params and returns it's value", function() {
25
- var originalFn = jasmine.createSpy("original").and.returnValue(42),
26
- spyStrategy = new j$.SpyStrategy({fn: originalFn}),
27
- returnValue;
28
-
29
- spyStrategy.callThrough();
30
- returnValue = spyStrategy.exec("foo");
31
-
32
- expect(originalFn).toHaveBeenCalled();
33
- expect(originalFn.calls.mostRecent().args).toEqual(["foo"]);
34
- expect(returnValue).toEqual(42);
35
- });
36
-
37
- it("can return a specified value when executed", function() {
38
- var originalFn = jasmine.createSpy("original"),
39
- spyStrategy = new j$.SpyStrategy({fn: originalFn}),
40
- returnValue;
41
-
42
- spyStrategy.returnValue(17);
43
- returnValue = spyStrategy.exec();
44
-
45
- expect(originalFn).not.toHaveBeenCalled();
46
- expect(returnValue).toEqual(17);
47
- });
48
-
49
- it("allows an exception to be thrown when executed", function() {
50
- var originalFn = jasmine.createSpy("original"),
51
- spyStrategy = new j$.SpyStrategy({fn: originalFn});
52
-
53
- spyStrategy.throwError(new TypeError("bar"));
54
-
55
- expect(function() { spyStrategy.exec(); }).toThrowError(TypeError, "bar");
56
- expect(originalFn).not.toHaveBeenCalled();
57
- });
58
-
59
- it("allows a non-Error to be thrown, wrapping it into an exception when executed", function() {
60
- var originalFn = jasmine.createSpy("original"),
61
- spyStrategy = new j$.SpyStrategy({fn: originalFn});
62
-
63
- spyStrategy.throwError("bar");
64
-
65
- expect(function() { spyStrategy.exec(); }).toThrowError(Error, "bar");
66
- expect(originalFn).not.toHaveBeenCalled();
67
- });
68
-
69
- it("allows a fake function to be called instead", function() {
70
- var originalFn = jasmine.createSpy("original"),
71
- fakeFn = jasmine.createSpy("fake").and.returnValue(67),
72
- spyStrategy = new j$.SpyStrategy({fn: originalFn}),
73
- returnValue;
74
-
75
- spyStrategy.callFake(fakeFn);
76
- returnValue = spyStrategy.exec();
77
-
78
- expect(originalFn).not.toHaveBeenCalled();
79
- expect(returnValue).toEqual(67);
80
- });
81
-
82
- it("allows a return to plan stubbing after another strategy", function() {
83
- var originalFn = jasmine.createSpy("original"),
84
- fakeFn = jasmine.createSpy("fake").and.returnValue(67),
85
- spyStrategy = new j$.SpyStrategy({fn: originalFn}),
86
- returnValue;
87
-
88
- spyStrategy.callFake(fakeFn);
89
- returnValue = spyStrategy.exec();
90
-
91
- expect(originalFn).not.toHaveBeenCalled();
92
- expect(returnValue).toEqual(67);
93
-
94
- spyStrategy.stub();
95
- returnValue = spyStrategy.exec();
96
-
97
- expect(returnValue).toEqual(void 0);
98
- });
99
-
100
- it("returns the spy after changing the strategy", function(){
101
- var spy = {},
102
- spyFn = jasmine.createSpy('spyFn').and.returnValue(spy),
103
- spyStrategy = new j$.SpyStrategy({getSpy: spyFn});
104
-
105
- expect(spyStrategy.callThrough()).toBe(spy);
106
- expect(spyStrategy.returnValue()).toBe(spy);
107
- expect(spyStrategy.throwError()).toBe(spy);
108
- expect(spyStrategy.callFake()).toBe(spy);
109
- expect(spyStrategy.stub()).toBe(spy);
110
- });
111
- });
@@ -1,216 +0,0 @@
1
- describe("Suite", function() {
2
-
3
- it("keeps its id", function() {
4
- var env = new j$.Env(),
5
- suite = new j$.Suite({
6
- env: env,
7
- id: 456,
8
- description: "I am a suite"
9
- });
10
-
11
- expect(suite.id).toEqual(456);
12
- });
13
-
14
- it("returns its full name", function() {
15
- var env = new j$.Env(),
16
- suite = new j$.Suite({
17
- env: env,
18
- description: "I am a suite"
19
- });
20
-
21
- expect(suite.getFullName()).toEqual("I am a suite");
22
- });
23
-
24
- it("returns its full name when it has parent suites", function() {
25
- var env = new j$.Env(),
26
- parentSuite = new j$.Suite({
27
- env: env,
28
- description: "I am a parent suite",
29
- parentSuite: jasmine.createSpy('pretend top level suite')
30
- }),
31
- suite = new j$.Suite({
32
- env: env,
33
- description: "I am a suite",
34
- parentSuite: parentSuite
35
- });
36
-
37
- expect(suite.getFullName()).toEqual("I am a parent suite I am a suite");
38
- });
39
-
40
- it("adds before functions in order of needed execution", function() {
41
- var env = new j$.Env(),
42
- suite = new j$.Suite({
43
- env: env,
44
- description: "I am a suite"
45
- }),
46
- outerBefore = jasmine.createSpy('outerBeforeEach'),
47
- innerBefore = jasmine.createSpy('insideBeforeEach');
48
-
49
- suite.beforeEach(outerBefore);
50
- suite.beforeEach(innerBefore);
51
-
52
- expect(suite.beforeFns).toEqual([innerBefore, outerBefore]);
53
- });
54
-
55
- it("adds after functions in order of needed execution", function() {
56
- var env = new j$.Env(),
57
- suite = new j$.Suite({
58
- env: env,
59
- description: "I am a suite"
60
- }),
61
- outerAfter = jasmine.createSpy('outerAfterEach'),
62
- innerAfter = jasmine.createSpy('insideAfterEach');
63
-
64
- suite.afterEach(outerAfter);
65
- suite.afterEach(innerAfter);
66
-
67
- expect(suite.afterFns).toEqual([innerAfter, outerAfter]);
68
- });
69
-
70
- it("can be disabled, but still calls callbacks", function() {
71
- var env = new j$.Env(),
72
- fakeQueueRunner = jasmine.createSpy('fake queue runner'),
73
- onStart = jasmine.createSpy('onStart'),
74
- resultCallback = jasmine.createSpy('resultCallback'),
75
- onComplete = jasmine.createSpy('onComplete'),
76
- suite = new j$.Suite({
77
- env: env,
78
- description: "with a child suite",
79
- onStart: onStart,
80
- resultCallback: resultCallback,
81
- queueRunner: fakeQueueRunner
82
- });
83
-
84
- suite.disable();
85
-
86
- expect(suite.disabled).toBe(true);
87
-
88
- suite.execute(onComplete);
89
-
90
- expect(fakeQueueRunner).not.toHaveBeenCalled();
91
- expect(onStart).toHaveBeenCalled();
92
- expect(resultCallback).toHaveBeenCalled();
93
- expect(onComplete).toHaveBeenCalled();
94
- });
95
-
96
- it("delegates execution of its specs and suites", function() {
97
- var env = new j$.Env(),
98
- parentSuiteDone = jasmine.createSpy('parent suite done'),
99
- fakeQueueRunnerForParent = jasmine.createSpy('fake parent queue runner'),
100
- parentSuite = new j$.Suite({
101
- env: env,
102
- description: "I am a parent suite",
103
- queueRunner: fakeQueueRunnerForParent
104
- }),
105
- fakeQueueRunner = jasmine.createSpy('fake queue runner'),
106
- suite = new j$.Suite({
107
- env: env,
108
- description: "with a child suite",
109
- queueRunner: fakeQueueRunner
110
- }),
111
- fakeSpec1 = {
112
- execute: jasmine.createSpy('fakeSpec1')
113
- };
114
-
115
- spyOn(suite, "execute");
116
-
117
- parentSuite.addChild(fakeSpec1);
118
- parentSuite.addChild(suite);
119
-
120
- parentSuite.execute(parentSuiteDone);
121
-
122
- var parentSuiteFns = fakeQueueRunnerForParent.calls.mostRecent().args[0].fns;
123
-
124
- parentSuiteFns[0]();
125
- expect(fakeSpec1.execute).toHaveBeenCalled();
126
- parentSuiteFns[1]();
127
- expect(suite.execute).toHaveBeenCalled();
128
- });
129
-
130
- it("calls a provided onStart callback when starting", function() {
131
- var env = new j$.Env(),
132
- suiteStarted = jasmine.createSpy('suiteStarted'),
133
- fakeQueueRunner = function(attrs) { attrs.onComplete(); },
134
- suite = new j$.Suite({
135
- env: env,
136
- description: "with a child suite",
137
- onStart: suiteStarted,
138
- queueRunner: fakeQueueRunner
139
- }),
140
- fakeSpec1 = {
141
- execute: jasmine.createSpy('fakeSpec1')
142
- };
143
-
144
- suite.execute();
145
-
146
- expect(suiteStarted).toHaveBeenCalledWith(suite);
147
- });
148
-
149
- it("calls a provided onComplete callback when done", function() {
150
- var env = new j$.Env(),
151
- suiteCompleted = jasmine.createSpy('parent suite done'),
152
- fakeQueueRunner = function(attrs) { attrs.onComplete(); },
153
- suite = new j$.Suite({
154
- env: env,
155
- description: "with a child suite",
156
- queueRunner: fakeQueueRunner
157
- }),
158
- fakeSpec1 = {
159
- execute: jasmine.createSpy('fakeSpec1')
160
- };
161
-
162
- suite.execute(suiteCompleted);
163
-
164
- expect(suiteCompleted).toHaveBeenCalled();
165
- });
166
-
167
- it("calls a provided result callback when done", function() {
168
- var env = new j$.Env(),
169
- suiteResultsCallback = jasmine.createSpy('suite result callback'),
170
- fakeQueueRunner = function(attrs) { attrs.onComplete(); },
171
- suite = new j$.Suite({
172
- env: env,
173
- description: "with a child suite",
174
- queueRunner: fakeQueueRunner,
175
- resultCallback: suiteResultsCallback
176
- }),
177
- fakeSpec1 = {
178
- execute: jasmine.createSpy('fakeSpec1')
179
- };
180
-
181
- suite.execute();
182
-
183
- expect(suiteResultsCallback).toHaveBeenCalledWith({
184
- id: suite.id,
185
- status: '',
186
- description: "with a child suite",
187
- fullName: "with a child suite"
188
- });
189
- });
190
-
191
- it("calls a provided result callback with status being disabled when disabled and done", function() {
192
- var env = new j$.Env(),
193
- suiteResultsCallback = jasmine.createSpy('suite result callback'),
194
- fakeQueueRunner = function(attrs) { attrs.onComplete(); },
195
- suite = new j$.Suite({
196
- env: env,
197
- description: "with a child suite",
198
- queueRunner: fakeQueueRunner,
199
- resultCallback: suiteResultsCallback
200
- }),
201
- fakeSpec1 = {
202
- execute: jasmine.createSpy('fakeSpec1')
203
- };
204
-
205
- suite.disable();
206
-
207
- suite.execute();
208
-
209
- expect(suiteResultsCallback).toHaveBeenCalledWith({
210
- id: suite.id,
211
- status: 'disabled',
212
- description: "with a child suite",
213
- fullName: "with a child suite"
214
- });
215
- });
216
- });
@@ -1,31 +0,0 @@
1
- describe("Timer", function() {
2
- it("reports the time elapsed", function() {
3
- var fakeNow = jasmine.createSpy('fake Date.now'),
4
- timer = new j$.Timer({now: fakeNow});
5
-
6
- fakeNow.and.returnValue(100);
7
- timer.start();
8
-
9
- fakeNow.and.returnValue(200);
10
-
11
- expect(timer.elapsed()).toEqual(100);
12
- });
13
-
14
- describe("when date is stubbed, perhaps by other testing helpers", function() {
15
- var origDate = Date;
16
- beforeEach(function() {
17
- Date = jasmine.createSpy('date spy');
18
- });
19
-
20
- afterEach(function() {
21
- Date = origDate;
22
- });
23
-
24
- it("does not throw even though Date was taken away", function() {
25
- var timer = new j$.Timer();
26
-
27
- expect(timer.start).not.toThrow();
28
- expect(timer.elapsed()).toEqual(jasmine.any(Number));
29
- });
30
- });
31
- });
@@ -1,28 +0,0 @@
1
- describe("j$.util", function() {
2
- describe("isArray_", function() {
3
- it("should return true if the argument is an array", function() {
4
- expect(j$.isArray_([])).toBe(true);
5
- expect(j$.isArray_(['a'])).toBe(true);
6
- });
7
-
8
- it("should return false if the argument is not an array", function() {
9
- expect(j$.isArray_(undefined)).toBe(false);
10
- expect(j$.isArray_({})).toBe(false);
11
- expect(j$.isArray_(function() {})).toBe(false);
12
- expect(j$.isArray_('foo')).toBe(false);
13
- expect(j$.isArray_(5)).toBe(false);
14
- expect(j$.isArray_(null)).toBe(false);
15
- });
16
- });
17
-
18
- describe("isUndefined", function() {
19
- it("reports if a variable is defined", function() {
20
- var a;
21
- expect(j$.util.isUndefined(a)).toBe(true);
22
- expect(j$.util.isUndefined(undefined)).toBe(true);
23
-
24
- var undefined = "diz be undefined yo";
25
- expect(j$.util.isUndefined(undefined)).toBe(false);
26
- });
27
- });
28
- });
@@ -1,149 +0,0 @@
1
- describe("Custom Matchers (Integration)", function() {
2
- var env;
3
- var fakeTimer;
4
-
5
- beforeEach(function() {
6
- env = new j$.Env();
7
- });
8
-
9
- it("allows adding more matchers local to a spec", function(done) {
10
- env.it('spec defining a custom matcher', function() {
11
- env.addMatchers({
12
- matcherForSpec: function() {
13
- return {
14
- compare: function(actual, expected) {
15
- return { pass: false, message: "matcherForSpec: actual: " + actual + "; expected: " + expected };
16
- }
17
- }
18
- }
19
- });
20
-
21
- env.expect("zzz").matcherForSpec("yyy");
22
- });
23
-
24
- env.it("spec without custom matcher defined", function() {
25
- expect(env.expect("zzz").matcherForSpec).toBeUndefined();
26
- });
27
-
28
- var specDoneSpy = jasmine.createSpy("specDoneSpy");
29
- var expectations = function() {
30
- var firstSpecResult = specDoneSpy.calls.first().args[0];
31
- expect(firstSpecResult.status).toEqual("failed");
32
- expect(firstSpecResult.failedExpectations[0].message).toEqual("matcherForSpec: actual: zzz; expected: yyy");
33
- done();
34
- };
35
- env.addReporter({ specDone:specDoneSpy, jasmineDone: expectations});
36
-
37
- env.execute();
38
- });
39
-
40
- it("passes the spec if the custom matcher passes", function(done) {
41
- env.addMatchers({
42
- toBeReal: function() {
43
- return { compare: function() { return { pass: true }; } };
44
- }
45
- });
46
-
47
- env.it("spec using custom matcher", function() {
48
- env.expect(true).toBeReal();
49
- });
50
-
51
- var specExpectations = function(result) {
52
- expect(result.status).toEqual('passed');
53
- };
54
-
55
- env.addReporter({ specDone: specExpectations, jasmineDone: done });
56
- env.execute();
57
- });
58
-
59
- it("uses the negative compare function for a negative comparison, if provided", function(done) {
60
- env.addMatchers({
61
- toBeReal: function() {
62
- return {
63
- compare: function() { return { pass: true }; },
64
- negativeCompare: function() { return { pass: true }; }
65
- };
66
- }
67
- });
68
-
69
- env.it("spec with custom negative comparison matcher", function() {
70
- env.expect(true).not.toBeReal();
71
- });
72
-
73
- var specExpectations = function(result) {
74
- expect(result.status).toEqual('passed');
75
- }
76
-
77
- env.addReporter({ specDone: specExpectations, jasmineDone: done });
78
- env.execute();
79
- });
80
-
81
- it("generates messages with the same rules as built in matchers absent a custom message", function(done) {
82
- env.addMatchers({
83
- toBeReal: function() {
84
- return {
85
- compare: function() {
86
- return { pass: false };
87
- }
88
- }
89
- }
90
- });
91
-
92
- env.it('spec with an expectation', function() {
93
- env.expect("a").toBeReal();
94
- });
95
-
96
- var specExpectations = function(result) {
97
- expect(result.failedExpectations[0].message).toEqual("Expected 'a' to be real.");
98
- };
99
-
100
- env.addReporter({ specDone: specExpectations, jasmineDone: done });
101
- env.execute();
102
- });
103
-
104
- it("passes the expected and actual arguments to the comparison function", function(done) {
105
- var argumentSpy = jasmine.createSpy("argument spy").and.returnValue({ pass: true });
106
- env.addMatchers({
107
- toBeReal: function() {
108
- return { compare: argumentSpy };
109
- }
110
- });
111
-
112
- env.it('spec with an expectation', function () {
113
- env.expect(true).toBeReal();
114
- env.expect(true).toBeReal("arg");
115
- env.expect(true).toBeReal("arg1", "arg2");
116
- });
117
-
118
- var specExpectations = function() {
119
- expect(argumentSpy).toHaveBeenCalledWith(true);
120
- expect(argumentSpy).toHaveBeenCalledWith(true, "arg");
121
- expect(argumentSpy).toHaveBeenCalledWith(true, "arg1", "arg2");
122
- };
123
-
124
- env.addReporter({ specDone: specExpectations, jasmineDone: done });
125
- env.execute();
126
- });
127
-
128
- it("passes the jasmine utility and current equality matchers to the expectation factory", function(done) {
129
- var matcherFactory = function() { return { compare: function() { return {pass: true}; }}; },
130
- argumentSpy = jasmine.createSpy("argument spy").and.returnValue(matcherFactory),
131
- customEqualityFn = function() { return true; };
132
-
133
- env.addCustomEqualityTester(customEqualityFn);
134
- env.addMatchers({
135
- toBeReal: argumentSpy
136
- });
137
-
138
- env.it("spec with expectation", function() {
139
- env.expect(true).toBeReal();
140
- });
141
-
142
- var specExpectations = function() {
143
- expect(argumentSpy).toHaveBeenCalledWith(j$.matchersUtil, [customEqualityFn]);
144
- };
145
-
146
- env.addReporter({ specDone: specExpectations, jasmineDone: done });
147
- env.execute();
148
- });
149
- });