Skip to content

Commit

Permalink
fake server now does fake view snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
moredip committed Aug 2, 2012
1 parent ac970af commit dac78a5
Show file tree
Hide file tree
Showing 43 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions config.ru
Expand Up @@ -20,7 +20,11 @@ class SinatraStaticServer < Sinatra::Base
when "/orientation" when "/orientation"
%Q|{"orientation":"portrait"}| %Q|{"orientation":"portrait"}|
when "/screenshot" when "/screenshot"
send_file( File.expand_path( "../fake_screenshot", __FILE__ ) ) send_file( File.expand_path( "../fake_server/fake_screenshot", __FILE__ ) )
when %r|^/screenshot/view-snapshot/|
uid = request.path.split("/").last
puts 'LOADING ' + uid
send_file( File.expand_path( "../fake_server/fake_view_snapshots/#{uid}", __FILE__ ) )
when "/screenshot/snapshot-all-views" when "/screenshot/snapshot-all-views"
"faked out" "faked out"
else else
Expand All @@ -29,7 +33,7 @@ class SinatraStaticServer < Sinatra::Base
end end


post("/dump") do post("/dump") do
send_file( File.expand_path( "../fake_dump_response.json", __FILE__ ) ) send_file( File.expand_path( "../fake_server/fake_dump_response.json", __FILE__ ) )
end end


not_found do not_found do
Expand Down

Large diffs are not rendered by default.

File renamed without changes.
Binary file added fake_server/fake_view_snapshots/110370032
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/110510976
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/110552016
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/110556272
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/110566144
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/112605664
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/112616048
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/112619072
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113373072
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113374064
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113375968
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113376016
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113377312
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113377616
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113381616
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113382256
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113382528
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113383472
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113387712
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113387824
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113387936
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113388048
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113403280
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113403584
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113404176
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113404288
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113404400
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113409200
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113410256
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113411200
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113417792
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113419696
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113419920
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113420224
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113423616
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113424080
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113424736
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113427104
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/113427248
Binary file not shown.
Binary file added fake_server/fake_view_snapshots/126154240
Binary file not shown.

0 comments on commit dac78a5

Please sign in to comment.