Sha256: 856677aea06ea18c7847f04bbe7dd377a26e69b600df36c79b1590f865c98440
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require "./test/helper" clean_describe "list tags" do subject { run_cmd("list tags") } describe "when file does not exist" do it "does not list anything" do stdout_only "" end end describe "when file is empty" do let(:content) { "" } it "does not list anything" do stdout_only "" end end describe "when file has content" do # Use scrambled content to differentiate between output that is sorted and output that # only reads from the (usually-sorted) file. let(:content) { SCRAMBLED_CONTENT } it "lists unique tags" do stdout_only <<-OUTPUT @food @navy @partying @science OUTPUT end describe "--from activities" do subject { run_cmd("list tags --from activities") } it "lists unique tags from activities" do stdout_only <<-OUTPUT @food @partying OUTPUT end end describe "--from friends" do subject { run_cmd("list tags --from friends") } it "lists unique tags from friends" do stdout_only <<-OUTPUT @navy @science OUTPUT end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
friends-0.30 | test/commands/list/tags_spec.rb |
friends-0.29 | test/commands/list/tags_spec.rb |