spec/metadata_spec.rb in engineyard-metadata-0.1.1 vs spec/metadata_spec.rb in engineyard-metadata-0.1.2
- old
+ new
@@ -58,9 +58,25 @@
end
it 'get the repository URI' do
EY::Metadata.repository_uri.should == 'FAKE_REPOSITORY_URI'
end
+
+ it 'gets the app name' do
+ EY::Metadata.app_name.should == 'FAKE_APP_NAME'
+ end
+
+ it 'gets the current path' do
+ EY::Metadata.current_path.should == '/data/FAKE_APP_NAME/current'
+ end
+
+ it 'gets the shared path' do
+ EY::Metadata.shared_path.should == '/data/FAKE_APP_NAME/shared'
+ end
+
+ it 'gets helpful ssh aliases' do
+ EY::Metadata.ssh_aliases.should =~ /Host FAKE_ENVIRONMENT_NAME-app_master\n Hostname app_master.compute-1.amazonaws.com/
+ end
end
shared_examples_for "it's executing outside the cloud" do
it 'gets the list of all environment names' do
EY::Metadata.environment_names.should == [ 'WRONG_ENVIRONMENT_NAME', 'FAKE_ENVIRONMENT_NAME' ]