From 95128a34651f41a1870ac2ff4f80472f602b10a7 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Mon, 11 Mar 2013 17:20:24 +0800 Subject: [PATCH] remove redundant space of co_author sample data --- .../personal_conference/spec/factories/writing_conferences.rb | 2 +- .../personal_journal/spec/factories/writing_journals.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/built_in_modules/personal_conference/spec/factories/writing_conferences.rb b/vendor/built_in_modules/personal_conference/spec/factories/writing_conferences.rb index 8f338f5e..129cc2bb 100644 --- a/vendor/built_in_modules/personal_conference/spec/factories/writing_conferences.rb +++ b/vendor/built_in_modules/personal_conference/spec/factories/writing_conferences.rb @@ -27,7 +27,7 @@ FactoryGirl.define do end f.sequence(:author_tokens) do |n| - "#{data_json[n]["author"].map{|m| m.split(",").reverse.join(" ")}.join(",")}" + "#{data_json[n]["author"].map{|m| m.split(",").reverse.map(&:strip).join(" ")}.join(",")}" end #f.sequence(:form_to_start) do |n| diff --git a/vendor/built_in_modules/personal_journal/spec/factories/writing_journals.rb b/vendor/built_in_modules/personal_journal/spec/factories/writing_journals.rb index 0d1f6b62..1afe175b 100644 --- a/vendor/built_in_modules/personal_journal/spec/factories/writing_journals.rb +++ b/vendor/built_in_modules/personal_journal/spec/factories/writing_journals.rb @@ -31,7 +31,7 @@ FactoryGirl.define do end f.sequence(:author_tokens) do |n| - "#{data_json[n]["author"].map{|m| m.split(",").reverse.join(" ")}.join(",")}" + "#{data_json[n]["author"].map{|m| m.split(",").reverse.map(&:strip).join(" ")}.join(",")}" end f.sequence(:form_to_start) do |n|