Silence thor output during tests.
This commit is contained in:
@@ -2,6 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe "homesick" do
|
||||
let(:homesick) { Homesick.new }
|
||||
before { silence! }
|
||||
|
||||
describe "clone" do
|
||||
context "of a file" do
|
||||
|
||||
@@ -20,6 +20,10 @@ RSpec.configure do |config|
|
||||
@user_dir.destroy!
|
||||
end
|
||||
|
||||
def silence!
|
||||
homesick.stub(:say_status)
|
||||
end
|
||||
|
||||
def given_castle(name, path=name)
|
||||
@repos_dir.directory(path) do |castle|
|
||||
Dir.chdir(castle) do
|
||||
|
||||
Reference in New Issue
Block a user