Sha256: 02dce09b6cd75d61e6e14e993e5e3f076ef0582fa7362e525b4eb0e5b2a60abc
Contents?: true
Size: 622 Bytes
Versions: 6
Compression:
Stored size: 622 Bytes
Contents
require 'rspectacular' describe ProgressBar::Format::Molecule do describe '#new' do before { @molecule = ProgressBar::Format::Molecule.new('e') } it 'sets the key when initialized' do expect(@molecule.key).to eql 'e' end it 'sets the method name when initialized' do expect(@molecule.method_name).to eql :estimated_time_with_unknown_oob end end describe '#bar_molecule?' do it "is true if the molecule's key is a representation of the progress bar graphic" do molecule = ProgressBar::Format::Molecule.new('B') expect(molecule).to be_bar_molecule end end end
Version data entries
6 entries across 6 versions & 2 rubygems