File: sys_filesystem_shared.rb

package info (click to toggle)
ruby-sys-filesystem 1.4.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: ruby: 1,952; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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