checkpoint, playing with git gem
This commit is contained in:
parent
4a6960efe1
commit
350ebb33ef
@ -9,7 +9,7 @@ module ActiveHash
|
||||
true
|
||||
end
|
||||
|
||||
def the_private_records
|
||||
def self.the_private_records
|
||||
@records
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user