Sha256: d06bfa1ff51fe6b5b3e581ec1b9152a280f0fa61a78e182372a0f4a35bd0bce2
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe "Standard Library" do describe "gets" do before :each do @interpreter = Flea::Interpreter.new @old_stdin = $stdin @buffer = StringIO.new $stdin = @buffer end it "should get input from STDIN" do @buffer.string = "test\n" result = @interpreter.run('(gets)') result.should == "test\n" end after :each do $stdin = @old_stdin end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flea-0.1.0 | spec/flea/standard_library/gets_spec.rb |