Sha256: b1b141123ce151061bb240e63fb71c97901e02250876254959aae7742e63324a
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
require 'spec_helper' require 'open3' require 'xploy/version' class XployBinary attr_reader :stdin, :stdout, :stderr def run exe = File.expand_path('../../../bin/xploy', File.dirname(__FILE__)) ENV['RUBYLIB'] = File.join(File.dirname(__FILE__), '../../../lib') @stdin, @stdout, @stderr = Open3.popen3("#{exe} --version") end end describe XployBinary do before { subject.run } its('stderr.readlines.to_s') { should_not include('xploy') } its('stdout.readlines.to_s') { should include(Xploy::VERSION) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xploy-0.1.1.beta | spec/integration/bin/xploy_binary_spec.rb |
xploy-0.1.0.beta | spec/integration/bin/xploy_binary_spec.rb |