Sha256: 9fa94b786fb4d7d0b809134b78bf1fa0f8f2c3d291d9802c9f34c8f8b1f5b52e
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Danica::Formatted do describe 'formatting' do subject do expression.tex(decimals: 3) end let(:expression) do value = 1 / 3.0 Danica.build(:x) do x + value end end describe '#to_tex' do it 'formats the output' do expect(subject.to_s).to eq('x + 0.333') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.7 | spec/integration/readme/danica/formatted_spec.rb |
danica-2.7.6 | spec/integration/readme/danica/formatted_spec.rb |
danica-2.7.5 | spec/integration/readme/danica/formatted_spec.rb |