summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-08-25 02:43:57 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-08-25 02:43:57 +0530
commit8ec6586aac066d9fda71ba9bff493bff11a1cc26 (patch)
tree41163b96e49abf0f77fb6764749c030a22ad6d12
parentbb43b0854873cd31fe72fac42f00a2041a6ccf74 (diff)
downloadchef-8ec6586aac066d9fda71ba9bff493bff11a1cc26.tar.gz
Mock TTY::Screen to fix table dynamic nature
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--spec/integration/knife/config_list_profiles_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/integration/knife/config_list_profiles_spec.rb b/spec/integration/knife/config_list_profiles_spec.rb
index 28f6cb4ccb..08372e646a 100644
--- a/spec/integration/knife/config_list_profiles_spec.rb
+++ b/spec/integration/knife/config_list_profiles_spec.rb
@@ -57,6 +57,7 @@ describe "knife config list-profiles", :workstation do
Dir.chdir(path_to("repo"))
ENV[ChefUtils.windows? ? "CD" : "PWD"] = Dir.pwd
ENV["HOME"] = path_to(".")
+ allow(TTY::Screen).to receive(:width).and_return(200)
end
# NOTE: The funky formatting with # at the end of the line of some of the