string not closed in factory rspec