Sha256: 57e273db541a43aa6ee018d5a2c039744e3b59b48edf14b6edbc52bae725b314

Contents?: true

Size: 589 Bytes

Versions: 9

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

require "./test/helper"

clean_describe "update" do
  subject { run_cmd("update") }
  let(:content) { nil }

  it "prints a status message" do
    value(subject[:stderr]).must_equal ""
    value(subject[:status]).must_equal 0
    value(
      [/Updated to friends/, /Already up-to-date/].one? { |m| subject[:stdout] =~ m }
    ).must_equal true
  end

  it "prints the post-install message" do
    value(subject[:stderr]).must_equal ""
    value(subject[:status]).must_equal 0
    value(subject[:stdout]).must_include Friends::POST_INSTALL_MESSAGE
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
friends-0.55 test/commands/update_spec.rb
friends-0.54 test/commands/update_spec.rb
friends-0.53 test/commands/update_spec.rb
friends-0.52 test/commands/update_spec.rb
friends-0.51 test/commands/update_spec.rb
friends-0.50 test/commands/update_spec.rb
friends-0.49 test/commands/update_spec.rb
friends-0.48 test/commands/update_spec.rb
friends-0.47 test/commands/update_spec.rb