null+****@clear*****
null+****@clear*****
Thu Jul 12 10:21:47 JST 2012
SHIMADA Koji 2012-07-12 10:21:47 +0900 (Thu, 12 Jul 2012) New Revision: 5be15f9036a40221f455c91c7ed45675ea7461b7 https://github.com/logaling/logaling-command/commit/5be15f9036a40221f455c91c7ed45675ea7461b7 Log: Use YAML.dump instead of FileUtils.touch Modified files: spec/logaling/repository_spec.rb Modified: spec/logaling/repository_spec.rb (+4 -1) =================================================================== --- spec/logaling/repository_spec.rb 2012-07-12 10:16:00 +0900 (3060ba9) +++ spec/logaling/repository_spec.rb 2012-07-12 10:21:47 +0900 (4b2818f) @@ -16,6 +16,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. require File.join(File.dirname(__FILE__), "..", "spec_helper") +require 'yaml' require "fileutils" module Logaling @@ -114,7 +115,9 @@ module Logaling context 'when yml file as glossary exists' do before do - FileUtils.touch(glossary_source_path) + File.open(glossary_source_path, 'w') do |f| + YAML.dump([], f) + end glossary.add("spec_logaling", "スペック", "備考") repository.index @terms = repository.lookup("spec_logaling", glossary) -------------- next part -------------- An HTML attachment was scrubbed... Download