1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
From: Hleb Valoshka <375gnu@gmail.com>
Date: Thu, 30 Jul 2015 12:44:15 +0300
Subject: Fix specs
* update syntax for rspec3
* require rspec/its
* don't change $LOAD_PATH
---
spec/buff/shell_out_spec.rb | 4 ++--
spec/spec_helper.rb | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/spec/buff/shell_out_spec.rb b/spec/buff/shell_out_spec.rb
index 948b81a..d596d47 100644
--- a/spec/buff/shell_out_spec.rb
+++ b/spec/buff/shell_out_spec.rb
@@ -13,8 +13,8 @@ describe Buff::ShellOut do
its(:stdout) { should be_a(String) }
its(:stderr) { should be_a(String) }
its(:exitstatus) { should be_a(Fixnum) }
- its(:success?) { should be_true }
- its(:error?) { should be_false }
+ its(:success?) { should be_truthy }
+ its(:error?) { should be_falsey }
context "when on MRI" do
before { described_class.stub(jruby?: false) }
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ff1247a..a6cc897 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,6 +1,5 @@
-$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
-
require 'rspec'
+require 'rspec/its'
require 'buff/ruby_engine'
def setup_rspec
|