blob: 31d01d96018d58e0d8cd9da8f1d7e18458ddac56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_relative '../spec_helper'
with_feature :readline do
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
|