Sha256: 6a89c3a6727753f379619d472a522b7ad1a3d15bbad27a71e1550911a9ef2cf0
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
require 'spec_helper' feature "Mocha specs", js: true do # if a spec path is provided, create a single spec for it if path = ENV["S"] it "pass for '#{path}'" do run_mocha_spec(path) end else # create a spec for each file spec dir that ends on "_spec.js.coffee" dir = File.join File.dirname(__FILE__), "javascripts" Dir[File.join(dir, "**/*_spec.js.coffee")].each do |f| spec_path = f.sub(dir, '')[1..-1].sub(/_spec\..*$/, '') it "pass for '#{spec_path.underscore}'" do run_mocha_spec spec_path end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
netzke-workspace-0.10.2 | spec/features/netzke_mocha_spec.rb |
netzke-workspace-0.10.1 | spec/features/netzke_mocha_spec.rb |
netzke-workspace-0.10.0 | spec/features/netzke_mocha_spec.rb |