Sha256: 2b070f8b84c295458807dfe4d4c38d41755a47c783347d58dedcee51ba7fbe27
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
require 'spec_helper' describe SPV::Fixtures::Modifiers::RelativePath do describe '#modify' do let(:fixture) { instance_double('SPV::Fixture', path: 'top_dir/next_dir/../') } subject { described_class.new(double) } it 'moves up on one level in the hierarchy of directories' do expect(fixture).to receive(:path=).with('top_dir') subject.modify(fixture) end it 'moves up on 2 levels in the hierarchy of directories' do allow(fixture).to receive(:path).and_return('parent_dir/some_dir/next_dir/../../') expect(fixture).to receive(:path=).with('parent_dir') subject.modify(fixture) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
site_prism.vcr-0.3.0 | spec/unit/fixtures/modifiers/relative_path_spec.rb |
site_prism.vcr-0.2.0 | spec/unit/fixtures/modifiers/relative_path_spec.rb |