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,506 +0,0 @@
1
- describe("Env integration", function() {
2
-
3
- it("Suites execute as expected (no nesting)", function(done) {
4
- var env = new j$.Env(),
5
- calls = [];
6
-
7
- var assertions = function() {
8
- expect(calls).toEqual([
9
- "with a spec",
10
- "and another spec"
11
- ]);
12
-
13
- done();
14
- };
15
-
16
- env.addReporter({ jasmineDone: assertions});
17
-
18
- env.describe("A Suite", function() {
19
- env.it("with a spec", function() {
20
- calls.push("with a spec");
21
- });
22
- env.it("and another spec", function() {
23
- calls.push("and another spec");
24
- });
25
- });
26
-
27
- env.execute();
28
- });
29
-
30
- it("Nested Suites execute as expected", function(done) {
31
- var env = new j$.Env(),
32
- calls = [];
33
-
34
- var assertions = function() {
35
- expect(calls).toEqual([
36
- 'an outer spec',
37
- 'an inner spec',
38
- 'another inner spec'
39
- ]);
40
-
41
- done();
42
- };
43
-
44
- env.addReporter({ jasmineDone: assertions });
45
-
46
- env.describe("Outer suite", function() {
47
- env.it("an outer spec", function() {
48
- calls.push('an outer spec')
49
- });
50
- env.describe("Inner suite", function() {
51
- env.it("an inner spec", function() {
52
- calls.push('an inner spec');
53
- });
54
- env.it("another inner spec", function() {
55
- calls.push('another inner spec');
56
- });
57
- });
58
- });
59
-
60
- env.execute();
61
- });
62
-
63
- it("Multiple top-level Suites execute as expected", function(done) {
64
- var env = new j$.Env(),
65
- calls = [];
66
-
67
- var assertions = function() {
68
- expect(calls).toEqual([
69
- 'an outer spec',
70
- 'an inner spec',
71
- 'another inner spec',
72
- 'a 2nd outer spec'
73
- ]);
74
-
75
- done();
76
- };
77
-
78
- env.addReporter({ jasmineDone: assertions });
79
-
80
-
81
- env.describe("Outer suite", function() {
82
- env.it("an outer spec", function() {
83
- calls.push('an outer spec')
84
- });
85
- env.describe("Inner suite", function() {
86
- env.it("an inner spec", function() {
87
- calls.push('an inner spec');
88
- });
89
- env.it("another inner spec", function() {
90
- calls.push('another inner spec');
91
- });
92
- });
93
- });
94
-
95
- env.describe("Another outer suite", function() {
96
- env.it("a 2nd outer spec", function() {
97
- calls.push('a 2nd outer spec')
98
- });
99
- });
100
-
101
- env.execute();
102
- });
103
-
104
- it("calls associated befores/specs/afters with the same 'this'", function(done) {
105
- var env = new j$.Env();
106
-
107
- env.addReporter({jasmineDone: done});
108
-
109
- env.describe("tests", function() {
110
- var firstTimeThrough = true, firstSpecContext, secondSpecContext;
111
-
112
- env.beforeEach(function() {
113
- if (firstTimeThrough) {
114
- firstSpecContext = this;
115
- } else {
116
- secondSpecContext = this;
117
- }
118
- expect(this).toEqual({});
119
- });
120
-
121
- env.it("sync spec", function() {
122
- expect(this).toBe(firstSpecContext);
123
- });
124
-
125
- env.it("another sync spec", function() {
126
- expect(this).toBe(secondSpecContext);
127
- });
128
-
129
- env.afterEach(function() {
130
- if (firstTimeThrough) {
131
- expect(this).toBe(firstSpecContext);
132
- firstTimeThrough = false;
133
- } else {
134
- expect(this).toBe(secondSpecContext);
135
- }
136
- });
137
- });
138
-
139
- env.execute();
140
- });
141
-
142
- it("calls associated befores/its/afters with the same 'this' for an async spec", function(done) {
143
- var env = new j$.Env();
144
-
145
- env.addReporter({jasmineDone: done});
146
-
147
- env.describe("with an async spec", function() {
148
- var specContext;
149
-
150
- env.beforeEach(function() {
151
- specContext = this;
152
- expect(this).toEqual({});
153
- });
154
-
155
- env.it("sync spec", function(underTestCallback) {
156
- expect(this).toBe(specContext);
157
- underTestCallback();
158
- });
159
-
160
- env.afterEach(function() {
161
- expect(this).toBe(specContext);
162
- });
163
- });
164
-
165
- env.execute();
166
- });
167
-
168
- it("Allows specifying which specs and suites to run", function(done) {
169
- var env = new j$.Env(),
170
- calls = [],
171
- suiteCallback = jasmine.createSpy('suite callback'),
172
- firstSpec,
173
- secondSuite;
174
-
175
- var assertions = function() {
176
- expect(calls).toEqual([
177
- 'third spec',
178
- 'first spec'
179
- ]);
180
- expect(suiteCallback).toHaveBeenCalled();
181
- done();
182
- };
183
-
184
- env.addReporter({jasmineDone: assertions, suiteDone: suiteCallback});
185
-
186
- env.describe("first suite", function() {
187
- firstSpec = env.it("first spec", function() {
188
- calls.push('first spec');
189
- });
190
- env.it("second spec", function() {
191
- calls.push('second spec');
192
- });
193
- });
194
-
195
- secondSuite = env.describe("second suite", function() {
196
- env.it("third spec", function() {
197
- calls.push('third spec');
198
- });
199
- });
200
-
201
- env.execute([secondSuite.id, firstSpec.id]);
202
- });
203
-
204
- it("Functions can be spied on and have their calls tracked", function () {
205
- var env = new j$.Env();
206
-
207
- var originalFunctionWasCalled = false;
208
- var subject = { spiedFunc: function() { originalFunctionWasCalled = true; } };
209
-
210
- var spy = env.spyOn(subject, 'spiedFunc');
211
-
212
- expect(subject.spiedFunc).toEqual(spy);
213
-
214
- expect(subject.spiedFunc.calls.any()).toEqual(false);
215
- expect(subject.spiedFunc.calls.count()).toEqual(0);
216
-
217
- subject.spiedFunc('foo');
218
-
219
- expect(subject.spiedFunc.calls.any()).toEqual(true);
220
- expect(subject.spiedFunc.calls.count()).toEqual(1);
221
- expect(subject.spiedFunc.calls.mostRecent().args).toEqual(['foo']);
222
- expect(subject.spiedFunc.calls.mostRecent().object).toEqual(subject);
223
- expect(originalFunctionWasCalled).toEqual(false);
224
-
225
- subject.spiedFunc('bar');
226
- expect(subject.spiedFunc.calls.count()).toEqual(2);
227
- expect(subject.spiedFunc.calls.mostRecent().args).toEqual(['bar']);
228
- });
229
-
230
- it("Mock clock can be installed and used in tests", function(done) {
231
- var globalSetTimeout = jasmine.createSpy('globalSetTimeout'),
232
- delayedFunctionForGlobalClock = jasmine.createSpy('delayedFunctionForGlobalClock'),
233
- delayedFunctionForMockClock = jasmine.createSpy('delayedFunctionForMockClock'),
234
- env = new j$.Env({global: { setTimeout: globalSetTimeout }});
235
-
236
- var assertions = function() {
237
- expect(delayedFunctionForMockClock).toHaveBeenCalled();
238
- expect(globalSetTimeout).toHaveBeenCalledWith(delayedFunctionForGlobalClock, 100);
239
-
240
- done();
241
- };
242
-
243
- env.addReporter({ jasmineDone: assertions });
244
-
245
- env.describe("tests", function() {
246
- env.it("test with mock clock", function() {
247
- env.clock.install();
248
- env.clock.setTimeout(delayedFunctionForMockClock, 100);
249
- env.clock.tick(100);
250
- env.clock.uninstall();
251
- });
252
- env.it("test without mock clock", function() {
253
- env.clock.setTimeout(delayedFunctionForGlobalClock, 100);
254
- });
255
- });
256
-
257
- expect(globalSetTimeout).not.toHaveBeenCalled();
258
- expect(delayedFunctionForMockClock).not.toHaveBeenCalled();
259
-
260
- env.execute();
261
- });
262
-
263
- it("should run async specs in order, waiting for them to complete", function(done) {
264
- var env = new j$.Env(), mutatedVar;
265
-
266
- env.describe("tests", function() {
267
- env.beforeEach(function() {
268
- mutatedVar = 2;
269
- });
270
-
271
- env.it("async spec", function(underTestCallback) {
272
- setTimeout(function() {
273
- expect(mutatedVar).toEqual(2);
274
- underTestCallback();
275
- done();
276
- }, 0);
277
- });
278
-
279
- env.it("after async spec", function() {
280
- mutatedVar = 3;
281
- });
282
- });
283
-
284
- env.execute();
285
- });
286
-
287
- describe("with a mock clock", function() {
288
- var originalTimeout;
289
-
290
- beforeEach(function() {
291
- originalTimeout = j$.DEFAULT_TIMEOUT_INTERVAL;
292
- jasmine.getEnv().clock.install();
293
- });
294
-
295
- afterEach(function() {
296
- jasmine.getEnv().clock.uninstall();
297
- j$.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
298
- });
299
-
300
- it("should wait a specified interval before failing specs haven't called done yet", function(done) {
301
- var env = new j$.Env(),
302
- reporter = jasmine.createSpyObj('fakeReporter', [ "specDone", "jasmineDone" ]);
303
-
304
- reporter.specDone.and.callFake(function() {
305
- expect(reporter.specDone).toHaveBeenCalledWith(jasmine.objectContaining({status: 'failed'}));
306
- });
307
-
308
- reporter.jasmineDone.and.callFake(function() {
309
- expect(reporter.jasmineDone.calls.count()).toEqual(1);
310
- done();
311
- });
312
-
313
- env.addReporter(reporter);
314
- j$.DEFAULT_TIMEOUT_INTERVAL = 8414;
315
-
316
- env.it("async spec that doesn't call done", function(underTestCallback) {
317
- env.expect(true).toBeTruthy();
318
- jasmine.getEnv().clock.tick(8416);
319
- });
320
-
321
- env.execute();
322
- });
323
- });
324
-
325
- // TODO: something is wrong with this spec
326
- it("should report as expected", function(done) {
327
- var env = new j$.Env(),
328
- reporter = jasmine.createSpyObj('fakeReporter', [
329
- "jasmineStarted",
330
- "jasmineDone",
331
- "suiteStarted",
332
- "suiteDone",
333
- "specStarted",
334
- "specDone"
335
- ]);
336
-
337
- reporter.jasmineDone.and.callFake(function() {
338
- expect(reporter.jasmineStarted).toHaveBeenCalledWith({
339
- totalSpecsDefined: 3
340
- });
341
- var suiteResult = reporter.suiteStarted.calls.first().args[0];
342
- expect(suiteResult.description).toEqual("A Suite");
343
-
344
- done();
345
- });
346
-
347
- env.addReporter(reporter);
348
-
349
- env.describe("A Suite", function() {
350
- env.it("with a top level spec", function() {
351
- env.expect(true).toBe(true);
352
- });
353
- env.describe("with a nested suite", function() {
354
- env.xit("with a pending spec", function() {
355
- env.expect(true).toBe(true);
356
- });
357
- env.it("with a spec", function() {
358
- env.expect(true).toBe(false);
359
- });
360
- });
361
- });
362
-
363
- env.execute();
364
- });
365
-
366
- it("should be possible to get full name from a spec", function() {
367
- var env = new j$.Env({global: { setTimeout: setTimeout }}),
368
- topLevelSpec, nestedSpec, doublyNestedSpec;
369
-
370
- env.describe("my tests", function() {
371
- topLevelSpec = env.it("are sometimes top level", function() {
372
- });
373
- env.describe("are sometimes", function() {
374
- nestedSpec = env.it("singly nested", function() {
375
- });
376
- env.describe("even", function() {
377
- doublyNestedSpec = env.it("doubly nested", function() {
378
- });
379
- });
380
- });
381
- });
382
-
383
- expect(topLevelSpec.getFullName()).toBe("my tests are sometimes top level");
384
- expect(nestedSpec.getFullName()).toBe("my tests are sometimes singly nested");
385
- expect(doublyNestedSpec.getFullName()).toBe("my tests are sometimes even doubly nested");
386
- });
387
-
388
- it("Custom equality testers should be per spec", function(done) {
389
- var env = new j$.Env({global: { setTimeout: setTimeout }}),
390
- reporter = jasmine.createSpyObj('fakeReporter', [
391
- "jasmineStarted",
392
- "jasmineDone",
393
- "suiteStarted",
394
- "suiteDone",
395
- "specStarted",
396
- "specDone"
397
- ]);
398
-
399
- reporter.jasmineDone.and.callFake(function() {
400
- var firstSpecResult = reporter.specDone.calls.first().args[0],
401
- secondSpecResult = reporter.specDone.calls.mostRecent().args[0];
402
-
403
- expect(firstSpecResult.status).toEqual("passed");
404
- expect(secondSpecResult.status).toEqual("failed");
405
-
406
- done();
407
- });
408
-
409
- env.addReporter(reporter);
410
-
411
- env.describe("testing custom equality testers", function() {
412
- env.it("with a custom tester", function() {
413
- env.addCustomEqualityTester(function(a, b) { return true; });
414
- env.expect("a").toEqual("b");
415
- });
416
-
417
- env.it("without a custom tester", function() {
418
- env.expect("a").toEqual("b");
419
- });
420
- });
421
-
422
- env.execute();
423
- });
424
-
425
- it("Custom matchers should be per spec", function() {
426
- var env = new j$.Env({global: { setTimeout: setTimeout }}),
427
- matchers = {
428
- toFoo: function() {}
429
- },
430
- reporter = jasmine.createSpyObj('fakeReporter', [
431
- "jasmineStarted",
432
- "jasmineDone",
433
- "suiteStarted",
434
- "suiteDone",
435
- "specStarted",
436
- "specDone"
437
- ]);
438
-
439
- env.addReporter(reporter);
440
-
441
- env.describe("testing custom matchers", function() {
442
- env.it("with a custom matcher", function() {
443
- env.addMatchers(matchers);
444
- expect(env.expect().toFoo).toBeDefined();
445
- });
446
-
447
- env.it("without a custom matcher", function() {
448
- expect(env.expect().toFoo).toBeUndefined();
449
- });
450
- });
451
-
452
- env.execute();
453
- });
454
-
455
- it("Custom equality testers for toContain should be per spec", function(done) {
456
- var env = new j$.Env({global: { setTimeout: setTimeout }}),
457
- reporter = jasmine.createSpyObj('fakeReporter', [
458
- "jasmineStarted",
459
- "jasmineDone",
460
- "suiteStarted",
461
- "suiteDone",
462
- "specStarted",
463
- "specDone"
464
- ]);
465
-
466
- reporter.jasmineDone.and.callFake(function() {
467
- var firstSpecResult = reporter.specDone.calls.first().args[0],
468
- secondSpecResult = reporter.specDone.calls.mostRecent().args[0];
469
-
470
- expect(firstSpecResult.status).toEqual("passed");
471
- expect(secondSpecResult.status).toEqual("failed");
472
-
473
- done();
474
- });
475
-
476
- env.addReporter(reporter);
477
-
478
- env.describe("testing custom equality testers", function() {
479
- env.it("with a custom tester", function() {
480
- env.addCustomEqualityTester(function(a, b) { return true; });
481
- env.expect(["a"]).toContain("b");
482
- });
483
-
484
- env.it("without a custom tester", function() {
485
- env.expect("a").toContain("b");
486
- });
487
- });
488
-
489
- env.execute();
490
- });
491
-
492
- it("produces an understandable error message when an 'expect' is used outside of a current spec", function(done) {
493
- var env = new j$.Env();
494
-
495
- env.describe("A Suite", function() {
496
- env.it("an async spec that is actually synchronous", function(underTestCallback) {
497
- underTestCallback();
498
- expect(function() { env.expect('a').toEqual('a'); }).toThrowError(/'expect' was used when there was no current spec/);
499
- done();
500
- });
501
- });
502
-
503
- env.execute();
504
- });
505
- });
506
-