spec/lib/new/interpolate_spec.rb in new-0.0.4 vs spec/lib/new/interpolate_spec.rb in new-0.0.5

- old
+ new

@@ -21,15 +21,15 @@ FileUtils.rm_rf @obj.dir end it 'should process and rename .erb files' do # check that files exist - expect(File.exists?(File.join(@obj.dir, 'baz.txt'))).to eq true - expect(File.exists?(File.join(@obj.dir, 'nested_baz', 'foo.txt'))).to eq true + expect(File.exists?(File.join(@obj.dir, 'foo_template', 'baz.txt'))).to eq true + expect(File.exists?(File.join(@obj.dir, 'foo_template', 'nested_baz', 'foo.txt'))).to eq true # check their content has been processed - expect(File.open(File.join(@obj.dir, 'baz.txt')).read).to include 'foo baz' - expect(File.open(File.join(@obj.dir, 'nested_baz', 'foo.txt')).read).to include 'foo baz' + expect(File.open(File.join(@obj.dir, 'foo_template', 'baz.txt')).read).to include 'foo baz' + expect(File.open(File.join(@obj.dir, 'foo_template', 'nested_baz', 'foo.txt')).read).to include 'foo baz' end it 'should create dot notation accessible options' do expect(@obj.dot_options.foo.bar).to eq('baz') end