Be a little less specific in cask output tests

These tests seemed a little over-specified and were failing on the CI
server. Reducing the specificity a little to try to get them to pass.
This commit is contained in:
Joshua McKinney 2017-03-19 19:56:41 -05:00
parent d11e417105
commit 437db065ca
3 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
describe Hbc::CLI::Install, :cask do describe Hbc::CLI::Install, :cask do
it "displays the installation progress" do it "displays the installation progress" do
output = Regexp.new <<-EOS.undent output = Regexp.new <<-EOS.undent
==> Downloading file:.*/caffeine.zip ==> Downloading file:.*caffeine.zip
==> Verifying checksum for Cask local-caffeine ==> Verifying checksum for Cask local-caffeine
==> Installing Cask local-caffeine ==> Installing Cask local-caffeine
==> Moving App 'Caffeine.app' to '.*/Caffeine.app'. ==> Moving App 'Caffeine.app' to '.*Caffeine.app'.
🍺 local-caffeine was successfully installed! .*local-caffeine was successfully installed!
EOS EOS
expect { expect {

View File

@ -7,14 +7,14 @@ describe Hbc::CLI::Reinstall, :cask do
end end
output = Regexp.new <<-EOS.undent output = Regexp.new <<-EOS.undent
==> Downloading file:.*/caffeine.zip ==> Downloading file:.*caffeine.zip
Already downloaded: .*/local-caffeine--1.2.3.zip Already downloaded: .*local-caffeine--1.2.3.zip
==> Verifying checksum for Cask local-caffeine ==> Verifying checksum for Cask local-caffeine
==> Uninstalling Cask local-caffeine ==> Uninstalling Cask local-caffeine
==> Removing App '.*/Caffeine.app'. ==> Removing App '.*Caffeine.app'.
==> Installing Cask local-caffeine ==> Installing Cask local-caffeine
==> Moving App 'Caffeine.app' to '.*/Caffeine.app'. ==> Moving App 'Caffeine.app' to '.*Caffeine.app'.
🍺 local-caffeine was successfully installed! .*local-caffeine was successfully installed!
EOS EOS
expect { expect {

View File

@ -8,7 +8,7 @@ describe Hbc::CLI::Uninstall, :cask do
output = Regexp.new <<-EOS.undent output = Regexp.new <<-EOS.undent
==> Uninstalling Cask local-caffeine ==> Uninstalling Cask local-caffeine
==> Removing App '.*/Caffeine.app'. ==> Removing App '.*Caffeine.app'.
EOS EOS
expect { expect {