brew/Library/Homebrew/test/pull_offline_test.rb

11 lines
371 B
Ruby
Raw Normal View History

require "testing_env"
2016-09-27 00:03:40 +02:00
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