spec/wrapp/cli_spec.rb in wrapp-0.6.0 vs spec/wrapp/cli_spec.rb in wrapp-0.7.0
- old
+ new
@@ -60,9 +60,33 @@
with(app_path, :include_parent_dir => true)
cli.run(argv)
end
end
end
+
+ %w(--filesystem -fs).each do |opt|
+ context "with #{opt}" do
+ let(:argv) { [app_path, opt] }
+
+ it 'specifies the filesystem type' do
+ cli.should_receive(:wrapp)
+ .with(app_path, :filesystem => 'HFS+')
+ cli.run(argv)
+ end
+ end
+ end
+
+ %w(--volume-name -n).each do |opt|
+ context "with #{opt}" do
+ let(:argv) { [app_path, opt] }
+
+ if 'specifies the volume name' do
+ cli.should_receive(:wrapp)
+ .with(app_path, :volume_name => '')
+ cli.run(argv)
+ end
+ end
+ end
end
describe '#wrapp' do
it 'creates the dmg via dmg builder' do
opts = %(some options and arguments)