diff --git a/spec/pigeon/bundle_spec.rb b/spec/pigeon/bundle_spec.rb index 96d51da..ca255e1 100644 --- a/spec/pigeon/bundle_spec.rb +++ b/spec/pigeon/bundle_spec.rb @@ -2,6 +2,8 @@ require "spec_helper" RSpec.describe Pigeon::Message do before(:each) do + puts "WARNING: This test deletes the blob dir! Fix ASAP" + `rm -rf #{Pigeon::PIGEON_BLOB_PATH}` p = Pigeon::DEFAULT_BUNDLE_PATH File.delete(p) if File.file?(p) end @@ -46,8 +48,6 @@ RSpec.describe Pigeon::Message do end it "ingests a bundle's blobs" do - puts "WARNING: This test deletes the blob dir! Fix ASAP" - `rm -rf #{Pigeon::PIGEON_BLOB_PATH}` db.reset_database blobs = [ "&622PRNJ7C0S05XR2AHDPKWMG051B1QW5SXMN2RQHF2AND6J8VGPG.sha256", diff --git a/spec/pigeon/storage_spec.rb b/spec/pigeon/storage_spec.rb index 6f668b1..b0b576e 100644 --- a/spec/pigeon/storage_spec.rb +++ b/spec/pigeon/storage_spec.rb @@ -47,13 +47,6 @@ RSpec.describe Pigeon::Storage do expect(db.all_blocks.count).to eq(1) end - it "finds all authored by a particular feed" do - ingested_messages = db.import_bundle("./spec/fixtures/normal") - author = ingested_messages.first.author.multihash - actual_messages = db.all_messages(author) - search_results = db.all_messages(author) - end - it "finds all messages" do msgs = [ db.add_message("strings", {