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

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

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