Sha256: 1496b2dc058643a89e8fdf6257e9fe9eb5fd01cc5fbef355539c82694d217dd5
Contents?: true
Size: 357 Bytes
Versions: 6
Compression:
Stored size: 357 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'path_operator' describe PathOperator do it 'should join strings as paths' do ('a' / 'b').should == 'a/b' end it 'should transform strings and symbols to paths' do [:asdf, 'asdf', Pathname.new('asdf')].each do |s| s.to_path.should == Pathname.new(s.to_s) end end end
Version data entries
6 entries across 6 versions & 1 rubygems