Current File : //opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.4/spec/sys_filesystem_shared.rb
# frozen_string_literal: true

require 'sys-filesystem'

RSpec.shared_examples Sys::Filesystem do
  example 'version number is set to the expected value' do
    expect(Sys::Filesystem::VERSION).to eq('1.4.4')
    expect(Sys::Filesystem::VERSION).to be_frozen
  end

  example 'you cannot instantiate an instance' do
    expect{ described_class.new }.to raise_error(NoMethodError)
  end
end
Page not found – Hello World !