Sha256: 560faf9455c5785a780282cdac99bc8a04689f1d8bd8cf67237f8292728ece92

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

process_is_foreground do

  not_supported_on :ironruby do
    require 'readline'
    describe "Readline::HISTORY.empty?" do
      it "returns true when the history is empty" do
        Readline::HISTORY.should be_empty
        Readline::HISTORY.push("test")
        Readline::HISTORY.should_not be_empty
        Readline::HISTORY.pop
        Readline::HISTORY.should be_empty
      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/empty_spec.rb