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.
18 lines
354 B
18 lines
354 B
13 years ago
|
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
|