spec/uploaded_spec.rb in capistrano-spec-0.3.2 vs spec/uploaded_spec.rb in capistrano-spec-0.3.3

- old
+ new

@@ -20,25 +20,27 @@ upload 'source.file', 'temp.XC3PO.file' # E.g. uploading to temp file end end end + subject(:configuration) { @configuration } + it 'some file' do - @configuration.upload 'source.file', 'target.file' - @configuration.should have_uploaded + configuration.upload 'source.file', 'target.file' + expect{ should have_uploaded } end it 'a specific file to a specific location' do - @configuration.upload_from_to - @configuration.should have_uploaded('source.file').to('target.file') + configuration.upload_from_to + expect{ should have_uploaded('source.file').to('target.file') } end it 'a specific file to some location' do - @configuration.upload_from - @configuration.should have_uploaded('source.file') + configuration.upload_from + expect{ should have_uploaded('source.file') } end it 'some file to a specific location' do - @configuration.upload_to - @configuration.should have_uploaded.to('target.file') + configuration.upload_to + expect{ should have_uploaded.to('target.file') } end end