Sha256: 0ef5bb66e16da3200a8d863921f5bbf9ace27cac807ed69c2f7ba020bed82e58
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require 'mork' RSpec.configure do |c| # filter_run is short-form alias for filter_run_including c.filter_run focus: true end class SampleImager attr_reader :info, :reg_marks, :q_boxes, :code_string, :code_int 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"] @code_string = @info["code_string"] @code_int = @info["code_int"] end def filename @info["filename"] end def width @info["width"] end def height @info["height"] end def pages @info["pages"] end end def sample_img(which) SampleImager.new(which) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mork-0.0.6 | spec/spec_helper.rb |