spec/unit/config_spec.rb in astrails-safe-0.3.0 vs spec/unit/config_spec.rb in astrails-safe-0.3.1
- old
+ new
@@ -99,10 +99,16 @@
archive :misc do
files [ "/backup/*.rb" ]
end
end
+ mongodump do
+ host "host"
+ database "database"
+ user "user"
+ password "password"
+ end
end
expected = {
"local" => {"path" => "path"},
@@ -175,9 +181,18 @@
"exclude" => ["/var/www/blog.astrails.com/log", "/var/www/blog.astrails.com/tmp"],
},
"misc" => { "files" => ["/backup/*.rb"] },
},
},
+
+ "mongodump" => {
+ "host" => "host",
+ "databases" => {
+ "database" => {}
+ },
+ "user" => "user",
+ "password" => "password"
+ }
}
config.to_hash.should == expected
end