Add pregenerated snapshot and frames to asciicast factory

openid
Marcin Kulik 11 years ago
parent ff153fff1a
commit 22f076a366

@ -20,5 +20,7 @@ FactoryGirl.define do
views_count 1
stdout_data { fixture_file['stdout', 'application/octet-stream'] }
stdout_timing { fixture_file['stdout.time', 'application/octet-stream'] }
stdout_frames { fixture_file['stdout.json', 'application/json'] }
snapshot JSON.parse(File.read('spec/fixtures/snapshot.json'))
end
end

@ -0,0 +1 @@
[[["code/ascii.io", {"fg": 4}], [" ", {}], ["(color-snapshot", {"fg": 3}], ["*", {"fg": 2}], ["?", {"fg": 4}], [")", {"fg": 3}], [" % ", {}], ["ohai", {"fg": 1, "bold": true}], [" :)", {}], [" ", {"inverse": true}], [" ", {}], ["(2.0.0)", {"fg": 1}], [" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]], [[" ", {}]]]

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save