summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-12-02 15:47:32 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-12-02 15:47:32 +0530
commit52871d2c8d8bc8ed526b8e3eda9aadb5fa0f93e5 (patch)
treee82909630080293ed9b2a829cd9d77d904125712 /spec/spec_helper.rb
parent6deede271dd01f0aad393d1264aba45a0a22d6f0 (diff)
downloadchef-52871d2c8d8bc8ed526b8e3eda9aadb5fa0f93e5.tar.gz
Fix undefined method `dirname' for Chef::Provider::File:Classlcg/file-verifier-output
 - Fix failing specs.  - Fix long strings getting truncated for RSpec expectations. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 27cf301d67..3154e2f255 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -123,8 +123,10 @@ RSpec.configure do |config|
config.filter_run_excluding external: true
# Explicitly disable :should syntax
+ # And set max_formatted_output_length to nil to prevent RSpec from doing truncation.
config.expect_with :rspec do |c|
c.syntax = :expect
+ c.max_formatted_output_length = nil
end
config.mock_with :rspec do |c|
c.syntax = :expect