Sha256: df0abaaa96e009ed52abe126d6ce65c6189cdca720c92e71ed0c4a1a38a9e691
Contents?: true
Size: 1.1 KB
Versions: 14
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 enviroment as production" do Octopus.enviroments.should == ["production"] end it "should allow the user to configure the octopus enviroments" do Octopus.setup do |config| config.enviroments = [:production, :staging] end Octopus.enviroments.should == ['production', 'staging'] Octopus.setup do |config| config.enviroments = [:production] end end end end
Version data entries
14 entries across 14 versions & 1 rubygems