spec/spec_helper.rb in mork-0.1.3 vs spec/spec_helper.rb in mork-0.2.1
- old
+ new
@@ -7,18 +7,34 @@
c.syntax = [:should, :expect]
end
end
class SampleImager
- attr_reader :info, :reg_marks, :q_boxes, :barcode_string, :barcode_int
+ attr_reader :info
def initialize(which)
ya = YAML.load_file("./spec/samples/info.yml")
- @info = ya[which.to_s]
- @reg_marks = @info["reg_marks"]
- @q_boxes = @info["q_boxes"]
- @barcode_string = @info["barcode_string"]
- @barcode_int = @info["barcode_int"]
+ @info = ya[which.to_s]
+ end
+
+ def grid_file
+ @info["grid-file"]
+ end
+
+ def reg_marks
+ @info["reg-marks"]
+ end
+
+ def q_boxes
+ @info["q-boxes"]
+ end
+
+ def barcode_string
+ @info["barcode-string"]
+ end
+
+ def barcode_int
+ @info["barcode-int"]
end
def filename
@info["filename"]
end