spec/unit/ridley/bootstrapper_spec.rb in ridley-0.9.1 vs spec/unit/ridley/bootstrapper_spec.rb in ridley-0.10.0.rc1
- old
+ new
@@ -16,10 +16,12 @@
validator_path: fixtures_path.join("reset.pem").to_s,
encrypted_data_bag_secret_path: fixtures_path.join("reset.pem").to_s
}
end
+ before(:each) { Ridley::HostConnector.stub(:best_connector_for).and_return(Ridley::HostConnector::SSH) }
+
describe "ClassMethods" do
subject { Ridley::Bootstrapper }
describe "::new" do
context "given a single string for nodes" do
@@ -46,21 +48,9 @@
end
it "has a context for each item given" do
@obj.contexts.should have(2).items
end
- end
- end
-
- describe "::templates_path" do
- it "returns a pathname" do
- subject.templates_path.should be_a(Pathname)
- end
- end
-
- describe "::default_template" do
- it "returns a string" do
- subject.default_template.should be_a(String)
end
end
end
subject { Ridley::Bootstrapper.new(nodes, options) }