spec/imgkit_spec.rb in imgkit-1.3.7 vs spec/imgkit_spec.rb in imgkit-1.3.8
- old
+ new
@@ -20,12 +20,17 @@
imgkit.source.should be_file
imgkit.source.to_s.should == file_path
end
it "should provide no default options" do
+ end
+
+ it "should set a default height" do
imgkit = IMGKit.new('<h1>Oh Hai</h1>')
- imgkit.options.should be_empty
+ imgkit.options.length.should be 1
+ imgkit.options[:height].should be 1000
end
+
=begin
it "should default to 'UTF-8' encoding" do
imgkit = IMGKit.new('Captación')
end