Sha256: 32c74afc93eb3f884f732d42d62f6f16691908a4deaf67c4774de6e7b39800f2
Contents?: true
Size: 1.06 KB
Versions: 11
Compression:
Stored size: 1.06 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' describe QuickTime::Exporter do it "should raise error when saving with no settings" do lambda { QuickTime::Exporter.new(nil).save_settings('foo') }.should raise_error(QuickTime::Error) end it "should raise error when atempting to load no file" do lambda { QuickTime::Exporter.new(nil).load_settings('foo/bar/baz') }.should raise_error(QuickTime::Error) end describe "loaded settings.st" do before(:each) do @load_path = File.dirname(__FILE__) + '/../fixtures/settings.st' @exporter = QuickTime::Exporter.new(nil) @exporter.load_settings(@load_path) end it "should be able to save settings to file" do save_path = File.dirname(__FILE__) + '/../output/saved_settings.st' @exporter.save_settings(save_path) File.size(save_path).should == File.size(@load_path) end it "should complain when attempting to save to an invalid file" do lambda { @exporter.save_settings('foo/bar/baz') }.should raise_error(QuickTime::Error) end end end
Version data entries
11 entries across 11 versions & 2 rubygems