Sha256: 66e2d5a81951b870d66beeffdfecfefe603174402af3c3602bade3703f5e9f5f

Contents?: true

Size: 810 Bytes

Versions: 1

Compression:

Stored size: 810 Bytes

Contents

##############################################################################
# constants_spec.rb
#
# Specs for the constants that have been defined in the ptools library.
# This test case should be run via the 'rake spec:constants' task.
##############################################################################
require 'rubygems'
require 'rspec'
require 'rbconfig'
require 'ptools'

RSpec.describe File, :constants do
  let(:windows) { File::ALT_SEPARATOR }

  example 'PTOOLS_VERSION constant is set to expected value' do
    expect(File::PTOOLS_VERSION).to eq('1.4.3')
    expect(File::PTOOLS_VERSION.frozen?).to be true
  end

  example 'IMAGE_EXT constant is set to array of values' do
    expect(File::IMAGE_EXT).to match_array(%w[.bmp .gif .ico .jpeg .jpg .png])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ptools-1.4.3-universal-mingw32 spec/constants_spec.rb