remove redundant space of co_author sample data

This commit is contained in:
Rueshyna 2013-03-11 17:20:24 +08:00 committed by Matt K. Fu
parent 8783b8e5fe
commit 95128a3465
2 changed files with 2 additions and 2 deletions

View File

@ -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|

View File

@ -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|