FIx tests, remove unused methods.
This commit is contained in:
parent
17bd8e7927
commit
7568d0412e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue