Sha256: fc306bb8d3fffd7ab968a1eafc55b3b1d256581b391a6cdbe24d59d8e69d2af1
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
module JsSpec class RailsServer < Server class << self def run(rails_root, server_options = {}) server_options[:Host] ||= DEFAULT_HOST server_options[:Port] ||= DEFAULT_PORT Server.instance = new(rails_root, server_options[:Host], server_options[:Port]) Server.instance.run server_options end end def initialize(rails_root, host=DEFAULT_HOST, port=DEFAULT_PORT) super( "#{rails_root}/spec/javascripts", "#{rails_root}/public/javascripts", "#{rails_root}/public", host, port ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
js_spec-0.2.0 | lib/js_spec/rails_server.rb |
js_spec-0.2.1 | lib/js_spec/rails_server.rb |