File: 0001-spec-spec_helper.rb-explicitly-enable-should-syntax.patch

package info (click to toggle)
ruby-indentation 0.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: ruby: 430; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Antonio Terceiro <terceiro@debian.org>
Date: Thu, 14 Jul 2016 22:09:09 -0300
Subject: spec/spec_helper.rb: explicitly enable should syntax

---
 spec/spec_helper.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 1f0e3ed..05806f9 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -54,4 +54,8 @@ def time
   t = Time.now
   yield
   Time.now - t
-end
\ No newline at end of file
+end
+
+RSpec.configure do |config|
+  config.expect_with(:rspec) { |c| c.syntax = :should }
+end