lib/serverspec/matchers/contain.rb in serverspec-0.0.2 vs lib/serverspec/matchers/contain.rb in serverspec-0.0.3
- old
+ new
@@ -1,6 +1,6 @@
RSpec::Matchers.define :contain do |expected|
match do |actual|
- ssh_exec(RSpec.configuration.host, commands.check_file_contain(actual, expected))
- $? == 0
+ ret = ssh_exec(RSpec.configuration.host, commands.check_file_contain(actual, expected))
+ ret[:exit_code] == 0
end
end