-
Notifications
You must be signed in to change notification settings - Fork 0
environment.rb
edhowland edited this page Sep 13, 2010
·
1 revision
- environment.rb
- included from spec/spec_helper.rb
- defines constants like server_url which points to the REST
- server. E.g. to switch between running the specs on the Ruby
- server (default) and the PHP server
- config.server = ‘http://localhost/~user/limonade/server.php’
- 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|
- set the configuration server url to something else
- e.g. PHP:
- config.server_url = ‘http://localhost/~user/limonade/server.php’
- config.server_url = ‘http://localhost:4567/ #default Sinatra server
config.server_url = ’http://localhost/~edh/limonade/server.php’
- The session key is the session cookie key
- config.session_ley = ‘rack.session’ # default
config.session_key = ‘Fresh_and_Minty_Limonade_App’
- Defines whether to use a straight HTTP PUT verb or to simulate with
- a field: method=PUT. The latter seems to be needed for Apache+liomade.php
config.put_needs_methodarg = true
end