Sha256: 69d80748f6fd9a1318092233400ea51b3b37d1cd199d11c0d595a24826bad2ca
Contents?: true
Size: 848 Bytes
Versions: 15
Compression:
Stored size: 848 Bytes
Contents
require 'spec_helper' module Mork # describe MimageList do # before(:all) do # tpg = sample_img(:two_pages) # @mlist = MimageList.new(tpg.filename) # end # # describe ".new" do # it "should raise an error unless called with a string" do # lambda { # MimageList.new(666) # }.should raise_error # end # end # # describe "[]" do # it "should return the 1st mimage in the stack" do # @mlist[0].should be_a(Mimage) # end # # it "should return the last mimage in the stack" do # @mlist[1].should be_a(Mimage) # end # end # # describe "each" do # it "should loop over all images" do # @mlist.each do |m| # puts m.inspect # m.should be_a(Mimage) # end # end # end # end end
Version data entries
15 entries across 15 versions & 1 rubygems