Sha256: 83ffc8721f79208bb82b07220bd6ec13b3a61f3b36e243e09b4d886cd0af03d3
Contents?: true
Size: 1.55 KB
Versions: 3
Compression:
Stored size: 1.55 KB
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'spec/helper/minimal' require 'spec/helper/mock_http' require 'spec/helper/simple_http' require 'spec/helper/requester' require 'spec/helper/context' Spec::Runner.configure do |config| config.include MockHTTP end if defined?(::Spec) exclude = Ramaze::Controller.class_trait[:exclude_action_modules] exclude += [Base64::Deprecated, Base64, Spec::Expectations::ObjectExpectations] exclude << Spec::Mocks::Methods if defined?(Spec::Mock::Methods) end # start up ramaze with a given hash of options # that will be merged with the default-options. def ramaze_start hash = {} options = { :adapter => false, :run_loose => true, :error_page => false, :port => 7007, :host => '127.0.0.1', :force => true, :origin => :spec, }.merge(hash) Ramaze.start(options) end alias ramaze ramaze_start # shutdown ramaze, this is not implemeted yet # (and might never be due to limited possibilites) def browser(*args, &block) Browser.new(*args, &block) end # require each of the following and rescue LoadError, telling you why it failed. def testcase_requires(*following) following.each do |file| require(file.to_s) end rescue LoadError => ex puts ex puts "Can't run #{$0}: #{ex}" puts "Usually you should not worry about this failure, just install the" puts "library and try again (if you want to use that feature later on)" exit end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.1 | spec/helper.rb |
ramaze-0.1.2 | spec/helper.rb |
ramaze-0.1.3 | spec/helper.rb |