Sha256: 482005c05a311b7de5f4491ffde39e72dfbd75a939837015a0fa27d9037cba9b
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
require 'spec_helper' require 'thwomp' module Thwomp describe Renderer do it "instantiates the ffmpeg renderer for flv" do path = "/some/path/test.flv" Renderers::FFMPEG.should_receive(:new).with(path) renderer = Renderer.new(path) end it "instantiates the gnash renderer for swf" do path = "/some/path/test.swf" Renderers::SWF.should_receive(:new).with(path) renderer = Renderer.new(path) end it "passes all arguments to the renderer" do path = "/some/path/test.swf" options = { :width => 200, :height => 200 } Renderers::SWF.should_receive(:new).with(path, options) renderer = Renderer.new(path, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thwomp-0.1.0 | spec/renderer_spec.rb |