No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config_spec.rb 456B

12345678910111213141516171819
  1. require 'cross-post'
  2. RSpec.describe CrossPost::Config::FifoSubConfig do
  3. it 'must remove first value in case of overflow' do
  4. config = CrossPost::Config::FifoSubConfig.new 2
  5. config[:foo] = :foo
  6. config[:bar] = :bar
  7. expect(config[:foo]).to be :foo
  8. expect(config[:bar]).to be :bar
  9. expect(config[:baz]).to be_nil
  10. config[:baz] = :baz
  11. expect(config[:foo]).to be_nil
  12. expect(config[:bar]).to be :bar
  13. expect(config[:baz]).to be :baz
  14. end
  15. end