From 78abcac1cbd94585d307ddb7577bb705b811fca4 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 8f338f5e1..129cc2bb8 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 0d1f6b62d..1afe175b0 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|