Sha256: a367d09fe6d12178960ddb3f162e0ab5bab13a59b8e65ad8b6ad7501f27826a8
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Octopus do describe "#config method" do it "should load shards.yml file to start working" do Octopus.config().should be_kind_of(Hash) end end describe "#directory method" do it "should return the directory that contains the shards.yml file" do Octopus.directory().should == File.expand_path(File.dirname(__FILE__) + "/../") end end describe "#env method" do it "should return 'production' when is outside of a rails application" do Octopus.env().should == 'octopus' end end describe "#setup method" do it "should have the default octopus environment as production" do Octopus.environments.should == ["production"] end it "should allow the user to configure the octopus environments" do Octopus.setup do |config| config.environments = [:production, :staging] end Octopus.environments.should == ['production', 'staging'] Octopus.setup do |config| config.environments = [:production] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ar-octopus-0.3.4 | spec/octopus/octopus_spec.rb |
ar-octopus-0.3.3 | spec/octopus/octopus_spec.rb |
ar-octopus-0.3.2 | spec/octopus/octopus_spec.rb |
ar-octopus-0.3.1 | spec/octopus/octopus_spec.rb |