Sha256: f273e24539482e69b9b5cbdd0ddbff6029f3066a6d05889719930755e5ec7422
Contents?: true
Size: 654 Bytes
Versions: 3
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true shared_examples 'an object that respond to basic_methods' do |ignore: [], methods: %i[to_f to_tex to_gnu priority valued? container? variable? variable_holder?]| (methods - ignore).each do |method| it { expect(subject).to respond_to(method) } end it 'accepts option on tex format' do expect do subject.to_tex(decimals: 2) end.not_to raise_error end it 'accepts option on gnu format' do expect do subject.to_gnu(decimals: 2) end.not_to raise_error end it 'accepts option on to format' do expect do subject.to(:gnu, decimals: 2) end.not_to raise_error end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.7 | spec/support/shared_examples/common.rb |
danica-2.7.6 | spec/support/shared_examples/common.rb |
danica-2.7.5 | spec/support/shared_examples/common.rb |