Sha256: 94cc53532ed74ba8ab152b8c4c01b2789ae0a723e9df66a5bed55c3e8ec13b8f

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

require "spec_helper"

require "tempfile"

describe "Invoker::Config" do
  describe "with invalid directory" do
    it "should raise error during startup" do
      begin
        file = Tempfile.new("invalid_config.ini")

        config_data =<<-EOD
[try_sleep]
directory = /Users/gnufied/foo
command = ruby try_sleep.rb
      EOD
        file.write(config_data)
        file.close
        lambda {
          Invoker::Config.new(file.path)
        }.should.raise(Invoker::Errors::InvalidConfig)
      ensure
        file.unlink()
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
invoker-0.0.3 spec/invoker/config_spec.rb