lib/pry-factorybot.rb in pry-factorybot-0.1.3 vs lib/pry-factorybot.rb in pry-factorybot-0.1.4
- old
+ new
@@ -7,10 +7,10 @@
Commands = Pry::CommandSet.new do
DEFAULT_STRATEGIES_NAMES.each do |strategy|
command "#{strategy}", "FactoryBot.#{strategy}" do
FactoryBot.class_eval <<-EOS
- #{Readline::HISTORY.to_a.last.strip}
+ #{Readline::HISTORY.to_a.last.gsub(' ', '')}
EOS
end
end
end
end