2011-11-23 21:30:09 +00:00
|
|
|
# Read about factories at http://github.com/thoughtbot/factory_girl
|
2012-03-03 17:06:44 +00:00
|
|
|
include ActionDispatch::TestProcess
|
2011-11-23 21:30:09 +00:00
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :asciicast do
|
2012-03-04 17:14:58 +00:00
|
|
|
association :user
|
|
|
|
title "bashing"
|
|
|
|
duration 100
|
2011-11-23 21:30:09 +00:00
|
|
|
recorded_at "2011-11-23 22:06:07"
|
2012-03-04 17:14:58 +00:00
|
|
|
terminal_type "xterm"
|
|
|
|
terminal_columns 80
|
|
|
|
terminal_lines 25
|
|
|
|
shell "/bin/bash"
|
|
|
|
uname "uname"
|
2012-03-08 14:00:10 +00:00
|
|
|
stdout do
|
|
|
|
fixture_file_upload("spec/fixtures/stdout", "application/octet-stream")
|
|
|
|
end
|
|
|
|
stdout_timing do
|
|
|
|
fixture_file_upload("spec/fixtures/stdout", "application/octet-stream")
|
|
|
|
end
|
2011-11-23 21:30:09 +00:00
|
|
|
end
|
|
|
|
end
|