spec/lib/mina/helpers/internal_spec.rb in mina-1.0.0.beta2 vs spec/lib/mina/helpers/internal_spec.rb in mina-1.0.0.beta3
- old
+ new
@@ -19,11 +19,12 @@
end
end
describe '#erb' do
before { Mina::Configuration.instance.set(:version_scheme, :sequence) }
-
+ after { Mina::Configuration.instance.remove(:version_scheme) }
+
it 'returns whole script' do
expect(helper.erb('data/deploy.sh.erb')).to_not be_empty
end
end
@@ -34,9 +35,10 @@
end
end
context 'when verbose' do
before { Mina::Configuration.instance.set(:verbose, true) }
+ after { Mina::Configuration.instance.remove(:verbose) }
it 'modifies code' do
expect(helper.echo_cmd('ls -al')).to eq("echo \\$\\ ls\\ -al &&\nls -al")
end