Sha256: 4ee3b0cde3555c35e7f482a964bc17f93733cf9f2b30885aac7a2def7f31b273
Contents?: true
Size: 824 Bytes
Versions: 5
Compression:
Stored size: 824 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 be_nil 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
picky-4.31.3 | spec/lib/picky_spec.rb |
picky-4.31.2 | spec/lib/picky_spec.rb |
picky-4.31.1 | spec/lib/picky_spec.rb |
picky-4.31.0 | spec/lib/picky_spec.rb |
picky-4.30.0 | spec/lib/picky_spec.rb |