Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .phantom-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.7
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ GEM
acts_as_list (0.3.0)
activerecord (>= 3.0)
addressable (2.3.6)
angularjs-rails (1.3.36)
angularjs-rails (1.3.8)
arel (5.0.1.20140414130214)
awesome_nested_set (3.0.1)
activerecord (>= 4.0.0, < 5)
Expand Down Expand Up @@ -387,6 +387,8 @@ GEM
sqlite3 (1.3.10)
state_machine (1.2.0)
stringex (1.5.1)
teaspoon (0.8.0)
railties (>= 3.2.5, < 5)
temple (0.7.4)
thor (0.19.1)
thread_safe (0.3.4)
Expand Down Expand Up @@ -437,4 +439,5 @@ DEPENDENCIES
spree_gateway!
spree_sample
sqlite3
teaspoon
webmock
3 changes: 3 additions & 0 deletions spec/dummy/config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
Rails.application.config.assets.precompile += %w( teaspoon.css )
Rails.application.config.assets.precompile += %w( mocha/1.17.1.js )
Rails.application.config.assets.precompile += %w( teaspoon-mocha.js )
40 changes: 40 additions & 0 deletions spec/javascripts/spec_helper.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Teaspoon includes some support files, but you can use anything from your own support path too.
# require support/expect
# require support/sinon
# require support/chai
# require support/your-support-file
#
# PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
# Use this polyfill to avoid the confusion.
#= require support/bind-poly
#
# Deferring execution
# If you're using CommonJS, RequireJS or some other asynchronous library you can defer execution. Call
# Teaspoon.execute() after everything has been loaded. Simple example of a timeout:
#
# Teaspoon.defer = true
# setTimeout(Teaspoon.execute, 1000)
#
# Matching files
# By default Teaspoon will look for files that match _spec.{js,js.coffee,.coffee}. Add a filename_spec.js file in your
# spec path and it'll be included in the default suite automatically. If you want to customize suites, check out the
# configuration in config/initializers/teaspoon.rb
#
# Manifest
# If you'd rather require your spec files manually (to control order for instance) you can disable the suite matcher in
# the configuration and use this file as a manifest.
#
# For more information: http://github.com/modeset/teaspoon
#
# Chai
# If you're using Chai, you'll probably want to initialize your preferred assertion style. You can read more about Chai
# at: http://chaijs.com/guide/styles
#
# window.assert = chai.assert
window.expect = chai.expect
# window.should = chai.should()
#
# You can require your own javascript files here. By default this will include everything in application, however you
# may get better load performance if you require the specific files that are being used in the spec that tests them.
#= require application
#= require support/angular-mocks
Loading