2012-10-14 05:17:52 +08:00
|
|
|
require 'test_helper'
|
|
|
|
|
|
|
|
describe Cask::CLI::Search do
|
|
|
|
it "lists the available casks that match the search term" do
|
|
|
|
lambda {
|
2012-11-25 10:13:57 +08:00
|
|
|
Cask::CLI::Search.run('intellij')
|
2012-10-14 05:17:52 +08:00
|
|
|
}.must_output <<-OUTPUT.gsub(/^ */, '')
|
2012-11-25 10:13:57 +08:00
|
|
|
intellij-community
|
|
|
|
intellij-ultimate
|
2012-10-14 05:17:52 +08:00
|
|
|
OUTPUT
|
|
|
|
end
|
|
|
|
end
|