Sha256: e27674de9d94dd1baf2d48f2f0d3979451f5a09feacd077a676b8ba7a0360141
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 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 let(:content) { nil } 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
friends-0.34 | test/commands/list/tags_spec.rb |
friends-0.33 | test/commands/list/tags_spec.rb |
friends-0.32 | test/commands/list/tags_spec.rb |
friends-0.31 | test/commands/list/tags_spec.rb |