Sha256: f27ea0c1f5fb49a7f9cf0c39bf17219fc866255d3498e0018c2f692567f4b7c8

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.2')
    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.2-universal-mingw32 spec/constants_spec.rb