Sha256: d0ecb56a5502deb95763af784c42c64bb0e91fc2e6de5b0e96fd2020316de0b5
Contents?: true
Size: 321 Bytes
Versions: 15
Compression:
Stored size: 321 Bytes
Contents
# encoding: utf-8 RSpec.describe TTY::Prompt::Choices, '.new' do it "creates choices collection" do choice_1 = TTY::Prompt::Choice.from(:label1) choice_2 = TTY::Prompt::Choice.from(:label2) collection = described_class[:label1, :label2] expect(collection.choices).to eq([choice_1, choice_2]) end end
Version data entries
15 entries across 15 versions & 1 rubygems