Sha256: c7f9d425a89ebe8a5e42bf43729eb20f6438b67fd7e0ac2de99949dc27148aad

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Twitch::Bot::Memory::Redis do
  describe "#store" do
    it "persists a value for a key" do
      config = Twitch::Bot::Config.new(
        settings: {
          bot_user: "testuser",
        },
      )
      client = Twitch::Bot::Client.new(
        config: config,
        channel: "testchannel",
      )
      mem = described_class.new(client: client)

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twitch-bot-3.2.1 spec/twitch/bot/memory/redis_spec.rb
twitch-bot-3.2.0 spec/twitch/bot/memory/redis_spec.rb