Sha256: 4ba0a975b6a54e4b78a0aeebc809c7bf4592a70f3a68b6d4832822cbc3bcb704

Contents?: true

Size: 254 Bytes

Versions: 23

Compression:

Stored size: 254 Bytes

Contents

require 'spec_helper'

describe Infobar::Rate do
  context 'with trend' do
    let :rate do
      described_class.new(23.45, (1..10).to_a, format: '%.2f%t')
    end

    it 'can be displayed' do
      expect(rate.to_s).to eq '23.45↗'
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
infobar-0.9.0 spec/infobar/rate_spec.rb
infobar-0.8.1 spec/infobar/rate_spec.rb
infobar-0.8.0 spec/infobar/rate_spec.rb
infobar-0.7.4 spec/infobar/rate_spec.rb
infobar-0.7.2 spec/infobar/rate_spec.rb
infobar-0.7.1 spec/infobar/rate_spec.rb
infobar-0.7.0 spec/infobar/rate_spec.rb
infobar-0.6.2 spec/infobar/rate_spec.rb
infobar-0.6.1 spec/infobar/rate_spec.rb
infobar-0.6.0 spec/infobar/rate_spec.rb
infobar-0.5.1 spec/infobar/rate_spec.rb
infobar-0.5.0 spec/infobar/rate_spec.rb
infobar-0.4.0 spec/infobar/rate_spec.rb
infobar-0.3.0 spec/infobar/rate_spec.rb
infobar-0.2.0 spec/infobar/rate_spec.rb
infobar-0.1.1 spec/infobar/rate_spec.rb
infobar-0.1.0 spec/infobar/rate_spec.rb
infobar-0.0.7 spec/infobar/rate_spec.rb
infobar-0.0.6 spec/infobar/rate_spec.rb
infobar-0.0.5 spec/infobar/rate_spec.rb