Sha256: fa86959849d757a4deaa15031f04d99f55223befac71023a3dd51db1666db19a

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 Bytes

Contents

require 'spec_helper'

describe Delayed::Web::JobsHelper, type: :helper do
  describe '#status_dom_class' do
    it 'is badge warning' do
      dom_class = helper.status_dom_class 'executing'

      expect(dom_class).to eq('badge badge-warning')
    end

    it 'is badge important' do
      dom_class = helper.status_dom_class 'failed'

      expect(dom_class).to eq('badge badge-important')
    end

    it 'is badge' do
      dom_class = helper.status_dom_class 'queued'

      expect(dom_class).to eq('badge')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
delayed-web-0.4.9 spec/helpers/jobs_helper_spec.rb
delayed-web-0.4.7 spec/helpers/jobs_helper_spec.rb
delayed-web-0.4.6 spec/helpers/jobs_helper_spec.rb
delayed-web-0.4.5 spec/helpers/jobs_helper_spec.rb
delayed-web-0.4.4 spec/helpers/jobs_helper_spec.rb
delayed-web-0.4.3 spec/helpers/jobs_helper_spec.rb
delayed-web-0.4.2 spec/helpers/jobs_helper_spec.rb