Sha256: 0f4254057954ce848a077c7fad6362c40d98aebd0e2ab31fa8e9cfb2e943bd28
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper' require 'open3' require 'xway/version' class XwayBinary attr_reader :stdin, :stdout, :stderr def run exe = File.expand_path('../../../bin/xway', File.dirname(__FILE__)) ENV['RUBYLIB'] = File.join(File.dirname(__FILE__), '../../../lib') @stdin, @stdout, @stderr = Open3.popen3("#{exe} --version") end end describe XwayBinary do before { subject.run } its('stderr.readlines.to_s') { should_not include('xway') } its('stdout.readlines.to_s') { should include(Xway::VERSION) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xway-0.0.3.beta | spec/integration/bin/xway_binary_spec.rb |
xway-0.0.2.beta | spec/integration/bin/xway_binary_spec.rb |
xway-0.0.1.beta | spec/integration/bin/xway_binary_spec.rb |