Sha256: a3a700ba29d215be8002c080aaf68c6605b88c68ba65d43732328f88f4968147
Contents?: true
Size: 826 Bytes
Versions: 2
Compression:
Stored size: 826 Bytes
Contents
require File.expand_path('../../../../spec_helper', __FILE__) require 'taketo/constructs/config' include Taketo describe "Config" do let(:config) { Taketo::Constructs::Config.new } describe "#append_project" do it "should add project to config's projects collection" do project = stub(:name => :foo) config.append_project(project) config.projects.should include(project) end end describe "#find_project" do it "should find project by name" do config.projects.should_receive(:find_by_name).with(:foo).and_return(:bar) config.find_project(:foo).should == :bar end end it "should set default_destination" do config.default_destination.should be_nil config.default_destination = "foo:bar:baz" config.default_destination.should == "foo:bar:baz" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taketo-0.0.4 | spec/lib/taketo/constructs/config_spec.rb |
taketo-0.0.3 | spec/lib/taketo/constructs/config_spec.rb |