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