Skip to content
edhowland edited this page Sep 13, 2010 · 1 revision
  1. environment.rb
  2. included from spec/spec_helper.rb
  3. defines constants like server_url which points to the REST
  4. server. E.g. to switch between running the specs on the Ruby
  5. server (default) and the PHP server
  6. config.server = ‘http://localhost/~user/limonade/server.php’
  7. This example is configured for my (edh) PHP server

require File.join(File.expand_path(File.dirname(FILE)), ‘..’, ‘lib’, ‘initializer’)

SpecWire::Initializer.run do |config|

  1. set the configuration server url to something else
  2. e.g. PHP:
  3. config.server_url = ‘http://localhost/~user/limonade/server.php’
  4. config.server_url = ‘http://localhost:4567/ #default Sinatra server
    config.server_url = ’http://localhost/~edh/limonade/server.php’
  1. The session key is the session cookie key
  2. config.session_ley = ‘rack.session’ # default
    config.session_key = ‘Fresh_and_Minty_Limonade_App’
  1. Defines whether to use a straight HTTP PUT verb or to simulate with
  2. a field: method=PUT. The latter seems to be needed for Apache+liomade.php
    config.put_needs_method
    arg = true
    end
Clone this wiki locally