Sha256: 70c7aea94e6eb9bd2d5fae50c809baac2dfc6da6af3b9cf47071be4c740c4d0b
Contents?: true
Size: 836 Bytes
Versions: 2
Compression:
Stored size: 836 Bytes
Contents
require 'spec_helper' describe Picky do it 'sets the right external encoding' do Encoding.default_external.should == Encoding::UTF_8 end # THINK What to set default internal encoding to? # it 'sets the right internal encoding' do Encoding.default_internal.should == Encoding::UTF_8 end it 'loads in a simple ruby environment with the defined requirements' do # TODO Picky.root is set to /spec/temp in spec_helper, so is this the "best" way? load_path = File.expand_path('../../../lib', __FILE__) ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"') simple_load = <<-COMMAND #{ruby} -I #{load_path} -r picky -e "puts 'OK'" COMMAND IO.popen(simple_load, err: [:child, :out]).readline.strip.should == 'OK' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-4.29.0 | spec/lib/picky_spec.rb |
picky-4.28.1 | spec/lib/picky_spec.rb |