spec/cape/capistrano_spec.rb in cape-1.1.0 vs spec/cape/capistrano_spec.rb in cape-1.2.0
- old
+ new
@@ -1,15 +1,31 @@
\ No newline at end of file
+require 'cape/capistrano'
+require 'cape/rake'
+
+describe Cape::Capistrano do
+ describe 'without specified attributes' do
+ its(:rake) { should == Cape::Rake.new }
+ end
+
+ describe 'with specified attributes' do
+ subject {
+ described_class.new :rake => 'I see you have the machine that goes "Bing!"'
+ }
+
+ its(:rake) { should == 'I see you have the machine that goes "Bing!"' }
+ end
+end