Module CoreEx::Pathname::Assertions
In: lib/core_ex/pathname.rb

Methods

Public Instance methods

[Source]

# File lib/core_ex/pathname.rb, line 202
      def assert_expand_path_with ( inp, ref, load_path=(@load_path || $LOAD_PATH) )
        assert_nothing_raised do
          @my = inp.expand_path_with(load_path, %w[ .rb .so .bundle .o .dll ] << '')
          ref = ref.expand_path.cleanpath unless ref.nil?
          assert_equal(ref, @my, inp)
        end
        unless ref.nil?
          assert_kind_of(Pathname, @my)
          assert(@my.exist?)
        end
      end

[Validate]