FIx tests, remove unused methods.

This commit is contained in:
Netscape Navigator 2020-03-06 07:47:13 -06:00
parent 17bd8e7927
commit 7568d0412e
3 changed files with 13 additions and 19 deletions

View File

@ -44,12 +44,6 @@ module Pigeon
self
end
# Convert a Pigeon::Draft into a Pigeon::Message
def sign
Draft.reset_current
raise "WIP"
end
def render
DraftTemplate.new(self).render
end

View File

@ -11,19 +11,19 @@ module Pigeon
@current ||= self.new
end
def message_count
store.transaction do
store[MESG_NS] ||= {}
store[MESG_NS].count
end
end
# def message_count
# store.transaction do
# store[MESG_NS] ||= {}
# store[MESG_NS].count
# end
# end
def save_message(msg)
store.transaction do
store[MESG_NS] ||= {}
store[MESG_NS][msg.depth || -100] = msg
end
end
# def save_message(msg)
# store.transaction do
# store[MESG_NS] ||= {}
# store[MESG_NS][msg.depth || -100] = msg
# end
# end
def set_config(key, value)
store.transaction do

View File

@ -35,6 +35,6 @@ RSpec.describe Pigeon::KeyPair do
it "caches KeyPair.current" do
first_kp = Pigeon::KeyPair.current
expect(first_kp).to be(first_kp) # Need strict equality here!
expect(Pigeon::KeyPair.current).to be(first_kp) # Need strict equality here!
end
end