summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/getpass_spec.rb
blob: 60fc64f0c54373377a0b0f41b1bfa4ebc8541cba (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../spec_helper'
require 'stringio'

# This method is added by io/console on require.
describe "StringIO#getpass" do
  require 'io/console'

  it "is defined by io/console" do
    StringIO.new("example").should.respond_to?(:getpass)
  end
end