Sha256: 59553952a1bb61d6d60568d3e41b6bb51cdc946389a40ae602985a8abefe2fd3
Contents?: true
Size: 917 Bytes
Versions: 1
Compression:
Stored size: 917 Bytes
Contents
require 'spec_helper' vcr_options = { allow_playback_repeats: true } describe Dolarblue, vcr: vcr_options do context 'Class Methods' do subject { Dolarblue } it 'should return all the dollar exchange Blue/Official/Card values and percentiles suitable for user printing' do # expect(subject.get_output).to match(/Dollar Blue.*\d+\.\d+.*^Information source/) expect(subject.get_output).to match(/Obtaining/) expect(subject.get_output).to match(/Done/) values = %q{\d+\.\d+\s+\/\s+\d+\.\d+} expect(subject.get_output).to match(/Official.*#{values}/) expect(subject.get_output).to match(/Card.*n\/a\s+\/\s+\d+\.\d+/) expect(subject.get_output).to match(/Blue.*#{values}/) expect(subject.get_output).to match(/Gap card/) expect(subject.get_output).to match(/Gap official/) expect(subject.get_output).to match(/Information source/) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dolarblue-0.4.0 | spec/dolarblue_spec.rb |