Use new rspec metadata arguments as symbol

This commit is contained in:
Thibault Jouan 2013-08-06 18:34:53 +00:00
parent cff122432b
commit 580ad66bab
2 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,7 @@ module Producer::Core
end end
end end
describe '#execute', type: :ssh do describe '#execute', :ssh do
let(:args) { 'some remote command'} let(:args) { 'some remote command'}
let(:command) { "echo #{args}" } let(:command) { "echo #{args}" }

View File

@ -6,8 +6,10 @@ require 'support/net_ssh_story_helpers'
RSpec.configure do |c| RSpec.configure do |c|
c.include NetSSHStoryHelpers, type: :ssh c.treat_symbols_as_metadata_keys_with_true_values = true
c.before(:each, type: :ssh) do
c.include NetSSHStoryHelpers, :ssh
c.before(:each, :ssh) do
allow(remote).to receive(:session) { connection } allow(remote).to receive(:session) { connection }
end end
end end