spec/lib/grim/pdf_spec.rb in grim-0.2.4 vs spec/lib/grim/pdf_spec.rb in grim-0.3.0
- old
+ new
@@ -17,12 +17,13 @@
pdf.path.should == fixture_path("smoker.pdf")
end
end
describe "#count" do
- it "should return 25" do
+ it "should call Grim.processor.count with pdf path" do
+ Grim.processor.should_receive(:count).with(fixture_path("smoker.pdf"))
pdf = Grim::Pdf.new(fixture_path("smoker.pdf"))
- pdf.count.should == 25
+ pdf.count
end
end
describe "#[]" do
before(:each) do
\ No newline at end of file