Displaying 1 result from an estimated 1 matches for "raw_barcod".
Did you mean:
raw_barcodes
2007 Oct 24
1
Stubbing Kernel.` (backquote)
I''m trying to stub(!) the Kernel.` (backquote) method and I''m having
confusing (to me) results. Here''s the method I''m spec''ing:
class Barcode
...
def raw_barcodes
self.make_temporary_copy
`OcrBarcode #{self.temp_file_path}`
end
...
end
And this is my (newbish) attempt at the spec:
describe "Calling @barcode.raw_barcodes" do
before(:each) do
File.stub!(:exist?).and_return(true)
@barcode = Barcode.new(''path/to/valid...