Permalink
Browse files

coverage

  • Loading branch information...
1 parent 2f824da commit 3149cde2eefa80bd35d1549ff4ee3547d46cc84f @ricardoalmeida ricardoalmeida committed Apr 12, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/models/project_spec.rb
@@ -46,6 +46,7 @@
expect_for "cd #{subject.send :path} && rake inploy:local:setup >> #{subject.send :log_path} 2>&1"
subject.save
end
+
end
context "on #build" do
@@ -155,6 +156,13 @@
subject.branch.should eql("master")
end
+ context "on destroy" do
+ it "should execute rm -rf" do
+ subject.should_receive(:execute).with("rm -rf /Users/ricardoalmeida/Documents/projects/gonow/signal/public/projects/")
+ subject.destroy
+ end
+ end
+
context "on has_file?" do
it "should return true if the project has the file path" do
file_exists(subject.send(:path) + '/doc/specs.html')

0 comments on commit 3149cde

Please sign in to comment.