Sha256: fd237a3c2d97129c94ee4c8d17cd10866ca3c21bfca012ed2ce70adbd81f1623
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require "teaspoon/framework/base" module Teaspoon module Jasmine class Framework < Teaspoon::Framework::Base # specify the framework name framework_name :jasmine # register standard versions register_version "1.3.1", "jasmine/1.3.1.js", dependencies: ["teaspoon-jasmine1.js"], dev_deps: ["teaspoon/jasmine1.js"] versions = ["2.0.3", "2.1.3", "2.2.0"] versions.each do |version| register_version version, "jasmine/#{version}.js", dependencies: ["teaspoon-jasmine2.js"], dev_deps: ["teaspoon/jasmine2.js"] end # add asset paths add_asset_path File.expand_path("../../../teaspoon/jasmine/assets", __FILE__) # add custom install templates add_template_path File.expand_path("../../../teaspoon/jasmine/templates", __FILE__) # specify where to install, and add installation steps. install_to "spec" do ext = options[:coffee] ? ".coffee" : ".js" copy_file "spec_helper#{ext}", "spec/javascripts/spec_helper#{ext}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teaspoon-jasmine-2.2.0 | lib/teaspoon/jasmine/framework.rb |