Sha256: a921598b3f684631e8231363beec5e949484563f4c6f525ec5af92fd97f5722c
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
require 'helper' class InitializationTests < Test::Unit::TestCase def test_spawn_with_file assert_nothing_raised { exp = Expectr.new(File.new("/bin/ls"), flush_buffer: false) } end def test_spawn_with_string assert_nothing_raised { exp = Expectr.new(File.new("/bin/ls"), flush_buffer: false) } end # lib/expectr.rb's permissions should be set to 0644 def test_spawn_failures assert_raises(Errno::ENOENT) { exp = Expectr.new("lib/ThisFileShouldNotExist", flush_buffer: false) } assert_raises(Errno::EACCES) { exp = Expectr.new("lib/expectr.rb", flush_buffer: false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
expectr-1.1.1 | test/test_initialization.rb |
expectr-1.1.0 | test/test_initialization.rb |