Sha256: 1fdebb5955b667f071802f2ca8a79348aba33a46be7350f7ebdf492e51211db3

Contents?: true

Size: 278 Bytes

Versions: 6

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Twitch::Bot::Memory::Hash do
  describe "#store" do
    it "persists a value for a key" do
      mem = described_class.new(client: nil)

      mem.store("foo", "bar")

      expect(mem.retrieve("foo")).to eq "bar"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twitch-bot-4.1.1 spec/twitch/bot/memory/hash_spec.rb
twitch-bot-4.1.0 spec/twitch/bot/memory/hash_spec.rb
twitch-bot-4.0.1 spec/twitch/bot/memory/hash_spec.rb
twitch-bot-4.0.0 spec/twitch/bot/memory/hash_spec.rb
twitch-bot-3.2.1 spec/twitch/bot/memory/hash_spec.rb
twitch-bot-3.2.0 spec/twitch/bot/memory/hash_spec.rb