Sha256: 235b45ae4d358763d01111798b36d47f45698106a26a494140320de0abbfe022
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Merb::Config do it "should apply environment from the command line option --environment" do options = Merb::Config.parse_args(["--environment", "performance_testing"]) options[:environment].should == "performance_testing" end it "should apply environment from the command line option -e" do options = Merb::Config.parse_args(["-e", "selenium"]) options[:environment].should == "selenium" end it "should load the yaml file for the environment if it exists" do options = Merb::Config.parse_args(["-e", "environment_config_test"]) options[:loaded_config_for_environment_config_test].should == true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
merb-0.5.0 | spec/merb/server_spec.rb |
merb-0.5.1 | spec/merb/server_spec.rb |
merb-0.5.3 | spec/merb/server_spec.rb |
merb-0.5.2 | spec/merb/server_spec.rb |