Sha256: cb68c23d355a08a1d70b0f2f8200a0d6ff32d1309ddcaae0d74fbd402f3009c5

Contents?: true

Size: 247 Bytes

Versions: 27

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true
class CookiesMock

  def initialize
    @cookies = {}
  end

  def []=(key, value)
    @cookies[key] = value[:value]
  end

  def [](key)
    @cookies[key]
  end

  def delete(key)
    @cookies.delete(key)
  end

end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
split-4.0.1 spec/support/cookies_mock.rb
split-4.0.0.pre2 spec/support/cookies_mock.rb
split-4.0.0.pre spec/support/cookies_mock.rb
ab-split-1.0.2 spec/support/cookies_mock.rb
ab-split-1.0.1 spec/support/cookies_mock.rb
ab-split-1.0.0 spec/support/cookies_mock.rb
split-3.4.1 spec/support/cookies_mock.rb
split-3.4.0 spec/support/cookies_mock.rb
split-3.3.2 spec/support/cookies_mock.rb
split-3.3.1 spec/support/cookies_mock.rb
split-3.3.0 spec/support/cookies_mock.rb
split-3.2.0 spec/support/cookies_mock.rb
split-3.1.1 spec/support/cookies_mock.rb
split-3.1.0 spec/support/cookies_mock.rb
split-3.0.0 spec/support/cookies_mock.rb
split-2.2.0 spec/support/cookies_mock.rb
split-2.1.0 spec/support/cookies_mock.rb
split-2.0.0 spec/support/cookies_mock.rb
split-1.7.0 spec/support/cookies_mock.rb
split-1.6.0 spec/support/cookies_mock.rb