Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created December 10, 2009 22:04
Show Gist options
  • Select an option

  • Save mileszs/253734 to your computer and use it in GitHub Desktop.

Select an option

Save mileszs/253734 to your computer and use it in GitHub Desktop.
should "timestamp the file name before creation" do
upload = Factory.build(:upload, :its_file_name => 'a_file')
before_filename = upload.its_file_name
upload.save
assert before_filename != upload.its_file_name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment