From 580ad66babf66ca3249ec13bbfe22c10648a730a Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 6 Aug 2013 18:34:53 +0000 Subject: [PATCH] Use new rspec metadata arguments as symbol --- spec/producer/core/remote_spec.rb | 2 +- spec/spec_helper.rb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/producer/core/remote_spec.rb b/spec/producer/core/remote_spec.rb index 132126c..264f4bd 100644 --- a/spec/producer/core/remote_spec.rb +++ b/spec/producer/core/remote_spec.rb @@ -29,7 +29,7 @@ module Producer::Core end end - describe '#execute', type: :ssh do + describe '#execute', :ssh do let(:args) { 'some remote command'} let(:command) { "echo #{args}" } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a81edcd..85d1639 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,8 +6,10 @@ require 'support/net_ssh_story_helpers' RSpec.configure do |c| - c.include NetSSHStoryHelpers, type: :ssh - c.before(:each, type: :ssh) do + c.treat_symbols_as_metadata_keys_with_true_values = true + + c.include NetSSHStoryHelpers, :ssh + c.before(:each, :ssh) do allow(remote).to receive(:session) { connection } end end