checkpoint, playing with git gem

This commit is contained in:
Torsten 2022-12-11 21:44:52 +02:00
parent 4a6960efe1
commit 350ebb33ef
2 changed files with 15 additions and 1 deletions

View File

@ -9,7 +9,7 @@ module ActiveHash
true
end
def the_private_records
def self.the_private_records
@records
end
end

View File

@ -22,5 +22,19 @@ module Merged
expect(first.next_card.index).to be 2
end
it "deletes " do
card = Card.find(20)
expect(card).not_to be nil
card.delete
expect{Card.find(20) }.to raise_error(ActiveHash::RecordNotFound)
end
it "destroys " do
Card.find(20).destroy
Card.reload
expect{Card.find(20) }.to raise_error(ActiveHash::RecordNotFound)
git = Git.open(Engine.root)
end
end
end