Sha256: c25de0ed8291af7995c3ecf31a95467a2fe4ff71324056b4521804bf7629c49a
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
require 'spec_helper' require 'support/helpers/construct_spec_helper' require 'taketo/constructs/environment' include Taketo describe "Environment" do subject(:environment) { Taketo::Constructs::Environment.new(:foo) } it "has name" do expect(environment.name).to eq(:foo) end it_behaves_like "a construct with nodes", :groups, :group it_behaves_like "a node with servers" specify "#project_name returns project name" do environment.parent = Taketo::Constructs::Project.new("TheProject") expect(environment.project_name).to eq("TheProject") end specify "#rails_env returns name as string" do environment.rails_env.should == "foo" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taketo-0.2.0 | spec/lib/taketo/constructs/environment_spec.rb |
taketo-0.2.0.alpha | spec/lib/taketo/constructs/environment_spec.rb |