Sha256: e90e2c62cbdde61081dd0e4cfa05d9d282e6b3b69dcf25fd92b207ee36c14741
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
module Jasmine class Config # Add your overrides or custom config code here # Generation JS container Ropenlayer Map @@dynamic_ropenlayer_helper = File.expand_path(File.join(File.dirname(__FILE__), '../helpers', 'RopenlayerHelper.js')) File.open(@@dynamic_ropenlayer_helper, 'w') do |f| f.write("// create a new element function setTestMap() { #{ Ropenlayer::Openlayer::Map.new('ropenlayer_test_map').to_js } return olObject_ropenlayer_test_map; } ") end puts @@dynamic_ropenlayer_helper end end module Jasmine class RunAdapter def run(focused_suite = nil) jasmine_files = @jasmine_files css_files = @jasmine_stylesheets + (@config.css_files || []) js_files = @config.js_files(focused_suite) body = ERB.new(File.read(File.join(File.dirname(__FILE__), "run.html.erb"))).result(binding) [ 200, { 'Content-Type' => 'text/html' }, [body] ] end end end # Note - this is necessary for rspec2, which has removed the backtrace module Jasmine class SpecBuilder def declare_spec(parent, spec) me = self example_name = spec["name"] @spec_ids << spec["id"] backtrace = @example_locations[parent.description + " " + example_name] parent.it example_name, {} do me.report_spec(spec["id"]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ropenlayer-0.3.5 | spec/javascripts/support/jasmine_config.rb |
ropenlayer-0.3.4 | spec/javascripts/support/jasmine_config.rb |
ropenlayer-0.3.3 | spec/javascripts/support/jasmine_config.rb |