aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/pull_offline_test.rb
blob: c9d46cd74bb5b099b09e23052b7c2737b84e59a0 (plain)
1
2
3
4
5
6
7
8
9
10
require "testing_env"

class IntegrationCommandTestPullOffline < IntegrationCommandTestCase
  def test_pull_offline
    assert_match "You meant `git pull --rebase`.", cmd_fail("pull", "--rebase")
    assert_match "This command requires at least one argument", cmd_fail("pull")
    assert_match "Not a GitHub pull request or commit",
      cmd_fail("pull", "0")
  end
end