diff options
author | wacky <wacky@kmc.gr.jp> | 2014-09-15 00:43:27 +0900 |
---|---|---|
committer | wacky <wacky@kmc.gr.jp> | 2014-09-15 00:43:27 +0900 |
commit | 2a3fae2db12914a217a53ab9b8605a7ea50adef2 (patch) | |
tree | 1e635671a10dd8426cd6afd42f285c5a3069295e /spec/unit/provider | |
parent | 0bf2af2d1917bdda0c4c8ffeaaa4250a59d743f6 (diff) | |
download | chef-2a3fae2db12914a217a53ab9b8605a7ea50adef2.tar.gz |
Modify test
Diffstat (limited to 'spec/unit/provider')
-rw-r--r-- | spec/unit/provider/package/pacman_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/unit/provider/package/pacman_spec.rb b/spec/unit/provider/package/pacman_spec.rb index 0c1c487980..ed10513350 100644 --- a/spec/unit/provider/package/pacman_spec.rb +++ b/spec/unit/provider/package/pacman_spec.rb @@ -94,10 +94,7 @@ PACMAN end it "should set the candidate version if pacman has one" do - @stdout.stub(:each).and_yield("core/nano 2.2.3-1 (base)"). - and_yield(" Pico editor clone with enhancements"). - and_yield("community/nanoblogger 3.4.1-1"). - and_yield(" NanoBlogger is a small weblog engine written in Bash for the command line") + @stdout.stub(:each).and_yield("core nano 2.2.3-1") @provider.stub(:popen4).and_yield(@pid, @stdin, @stdout, @stderr).and_return(@status) @provider.load_current_resource @provider.candidate_version.should eql("2.2.3-1") @@ -124,8 +121,7 @@ PACMAN_CONF ::File.stub(:exists?).with("/etc/pacman.conf").and_return(true) ::File.stub(:read).with("/etc/pacman.conf").and_return(@pacman_conf) - @stdout.stub(:each).and_yield("customrepo/nano 1.2.3-4"). - and_yield(" My custom package") + @stdout.stub(:each).and_yield("customrepo nano 1.2.3-4") @provider.stub(:popen4).and_yield(@pid, @stdin, @stdout, @stderr).and_return(@status) @provider.load_current_resource |