Sha256: 06d934f9b20f6d23319f7c05e50787e7438759c5aa83f1add8b0057cf93c8a11
Contents?: true
Size: 787 Bytes
Versions: 1
Compression:
Stored size: 787 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.5.0') 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.5.0 | spec/constants_spec.rb |