Sha256: c59063364262f79cee831b8cb71061ebbb578ab81e5451ed981b1aa0cf1510ce
Contents?: true
Size: 687 Bytes
Versions: 8
Compression:
Stored size: 687 Bytes
Contents
require "spec_helper" module Beaker module Options describe OptionsFileParser do let(:parser) {described_class} let(:simple_opts) {File.join(File.expand_path(File.dirname(__FILE__)), "data", "opts.txt")} it "can correctly read options from a file" do FakeFS.deactivate! expect(parser.parse_options_file(simple_opts)).to be === {:debug=>true, :tests=>"test.rb", :pre_suite=>["pre-suite.rb"], :post_suite=>"post_suite1.rb,post_suite2.rb"} end it "raises an error on no file found" do FakeFS.deactivate! expect{parser.parse_options_file("not a valid path")}.to raise_error(ArgumentError) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems