Sha256: 4e2d94bfe0d3d829ee3c887ac327250f75dc2434ac0a2736cd78fd2add81b368
Contents?: true
Size: 689 Bytes
Versions: 4
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true module Rordash RSpec.describe PathUtil do describe '#fixtures_path' do context 'without arg' do it 'returns full fixture path' do fixtures_path = Rails.root.join('spec', 'fixtures') expect(described_class.fixtures_path).to eql(Pathname.new(fixtures_path)) end end context 'with filename' do let(:filename) { 'some-file-name.png ' } it 'returns full fixture path' do fixtures_path = Rails.root.join('spec', 'fixtures') expect(described_class.fixtures_path(filename)).to eql(Pathname.new("#{fixtures_path}/#{filename}")) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rordash-0.1.3 | spec/rordash/path_util_spec.rb |
rordash-0.1.2 | spec/rordash/path_util_spec.rb |
rordash-0.1.1 | spec/rordash/path_util_spec.rb |
rordash-0.1.0 | spec/rordash/path_util_spec.rb |