Skip to content

Commit

Permalink
Checking if attachment is really deleted from database
Browse files Browse the repository at this point in the history
  • Loading branch information
tapajos committed Aug 4, 2010
1 parent 9466f67 commit 0d72447
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/couchrest/attachment_spec.rb
Expand Up @@ -30,6 +30,13 @@
@obj.delete_attachment(@attachment_name)
@obj.has_attachment?(@attachment_name).should be_false
end

it 'should return false if an attachment has been removed and reloaded' do
@obj.delete_attachment(@attachment_name)
reloaded_obj = Basic.get(@obj.id)
reloaded_obj.has_attachment?(@attachment_name).should be_false
end

end

describe "creating an attachment" do
Expand Down

0 comments on commit 0d72447

Please sign in to comment.