spec/sprinkle/installers/push_text_spec.rb in crafterm-sprinkle-0.2.2 vs spec/sprinkle/installers/push_text_spec.rb in crafterm-sprinkle-0.2.3
- old
+ new
@@ -34,11 +34,11 @@
it 'should invoke the push text installer for all specified packages' do
@install_commands.should =~ /echo 'another-hair-brained-idea' | tee -a \/dev\/mind\/late-night/
end
it 'should automatically insert pre/post commands for the specified package' do
- @installer.send(:install_sequence).should == [ 'op1', "echo 'another-hair-brained-idea' | tee -a /dev/mind/late-night", 'op2' ]
+ @installer.send(:install_sequence).should == [ 'op1', "echo -e 'another-hair-brained-idea' | tee -a /dev/mind/late-night", 'op2' ]
end
end
describe 'running with sudo' do
@@ -46,10 +46,10 @@
@installer = create_text "I'm a special user", "/dev/mind/the-day-after", :sudo => true
@install_commands = @installer.send :install_commands
end
it "should invoke the push installer with sudo" do
- @install_commands.should =~ /echo 'I\'m a special user' | sudo tee -a \/dev\/mind\/the-day-after/
+ @install_commands.should =~ /echo -e 'I\'m a special user' | sudo tee -a \/dev\/mind\/the-day-after/
end
end
end