You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
354 B
17 lines
354 B
require 'test_helper'
|
|
|
|
describe Cask::CLI::Search do
|
|
it "lists the available casks that match the search term" do
|
|
Cask.stubs(:all).returns(%w[
|
|
phinze-cask/foo
|
|
phinze-cask/bar
|
|
phinze-cask/baz
|
|
])
|
|
lambda {
|
|
Cask::CLI::Search.run('ba')
|
|
}.must_output <<-OUTPUT.gsub(/^ */, '')
|
|
bar
|
|
baz
|
|
OUTPUT
|
|
end
|
|
end
|
|
|