spec/unit/source/test_path.rb in wlang-2.3.1 vs spec/unit/source/test_path.rb in wlang-3.0.0

- old
+ new

@@ -8,20 +8,20 @@ let(:source){ "Hello world!" } it{ should be_nil } end context 'on a Path' do - let(:source){ Path.here } + let(:source){ Path.file } it{ should eq(source.to_s) } end context 'on a File' do - let(:source){ File.open(Path.here.to_s) } + let(:source){ File.open(Path.file.to_s) } it{ should eq(__FILE__) } end it 'is aliased as to_path' do - Source.new(Path.here).to_path.should eq(__FILE__) + Source.new(Path.file).to_path.should eq(__FILE__) end end end \ No newline at end of file