spec/helpers/init_helper_spec.rb in tane-0.0.1 vs spec/helpers/init_helper_spec.rb in tane-0.0.2

- old
+ new

@@ -62,25 +62,25 @@ Tane::Helpers::Init.save_envs({}) end end describe "save_emails" do - it "should write a .bushido/emails.yml file if it does not exist" do + it "should create a sample email template file to .bushido/emails dir if it does not exist" do File.should_receive(:exists?).and_return(false) File.should_receive(:open) Tane::Helpers::Init.save_emails end - it "should write a .bushido/emails.yml file if it already exists and if the user agrees to an overwrite" do + it "should create a sample email template file if it already exists and if the user agrees to an overwrite" do File.should_receive(:exists?).and_return(true) Tane::Helpers::Init.term.should_receive(:agree).and_return(true) File.should_receive(:open) Tane::Helpers::Init.save_emails end - it "should not write a .bushido/emails.yml file if the user says no to an overwrite" do + it "should not create a sample email template file if the user says no to an overwrite" do File.should_receive(:exists?).and_return(true) Tane::Helpers::Init.term.should_receive(:agree).and_return(false) File.should_not_receive(:open) Tane::Helpers::Init.save_emails