asciinema.org/spec/factories/asciicasts.rb
Marcin Kulik c4f40322ed Merge branch 'master' into comments
* master:
  Display asciicast author and creation time
  Claiming asciicasts
  User#add_user_token
  Asciicast.assign_user
  User tokens for assigning asciicasts to users
  Better styles + pagination

Conflicts:
	app/models/asciicast.rb
	db/schema.rb
	spec/factories/asciicasts.rb
	spec/factories/users.rb
2012-03-04 21:14:35 +01:00

19 lines
551 B
Ruby

# Read about factories at http://github.com/thoughtbot/factory_girl
include ActionDispatch::TestProcess
FactoryGirl.define do
factory :asciicast do
association :user
title "bashing"
duration 100
recorded_at "2011-11-23 22:06:07"
terminal_type "xterm"
terminal_columns 80
terminal_lines 25
shell "/bin/bash"
uname "uname"
stdout { fixture_file_upload("spec/fixtures/stdout", "application/octet-stream") }
stdout_timing { fixture_file_upload("spec/fixtures/stdout", "application/octet-stream") }
end
end