Sha256: 49e0a9a35339cca6bb152ba39e9c17104d8586b194d993c1e97222001f4b9397
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' process_is_foreground do not_supported_on :ironruby do require 'readline' describe "Readline::HISTORY.each" do before(:each) do Readline::HISTORY.push("1", "2", "3") end after(:each) do Readline::HISTORY.pop Readline::HISTORY.pop Readline::HISTORY.pop end it "yields each item in the history" do result = [] Readline::HISTORY.each do |x| result << x end result.should == ["1", "2", "3"] end it "yields tainted Objects" do Readline::HISTORY.each do |x| x.tainted?.should be_true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
readline-ffi-0.0.2 | spec/library/readline/history/each_spec.rb |