Sha256: 84d9baeb9f56cd896b649ce746a571868bb39bf49ae618afdedab6056a95f818

Contents?: true

Size: 464 Bytes

Versions: 14

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe RedisWebManager::ClientsHelper, type: :helper do
  describe 'helper' do
    it 'returns age value' do
      expect(helper.age(86_400)).to eql('1 day')
    end

    it 'returns flags value' do
      expect(helper.flags(:A)).to eql('Connection to be closed ASAP')
    end

    it 'returns events value' do
      expect(helper.events(:r)).to eql('The client socket is readable')
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.9 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.8 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.6 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.5 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.4 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.3 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.2 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.1 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.3.0 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.2.1 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.2.0 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.1.8 spec/helpers/clients_helper_spec.rb
redis_web_manager-0.1.6 spec/helpers/clients_helper_spec.rb