summaryrefslogtreecommitdiff
path: root/spec/ruby/core/filetest/socket_spec.rb
blob: f274be6318c203f48737aca8b3a96d746b3f9f16 (plain)
1
2
3
4
5
6
7
8
9
10
require_relative '../../spec_helper'
require_relative '../../shared/file/socket'

describe "FileTest.socket?" do
  it_behaves_like :file_socket, :socket?, FileTest

  it "returns false if file does not exist" do
    FileTest.socket?("I_am_a_bogus_file").should == false
  end
end