Created
May 6, 2015 17:15
-
-
Save bernardo-cs/e6afbd572e6c30979ac7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
describe 'the problem' | |
it 'only creates a tweet after the third factry invocation' | |
puts "There are " + Category.count.to_s + " categories in the db" | |
3.times do | |
begin | |
FactoryGirl.build( :twtr_tweet_reg ) | |
rescue Exception => e | |
puts "Tryied to create category with name" + e.name.to_s | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment