Sha256: 7552e02a85365afa794f2157beec50c096854e66825296a894d3bcb41a1d786c

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 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::Parsers::Config.new(file.path)
        }.should.raise(Invoker::Errors::InvalidConfig)
      ensure
        file.unlink()
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
invoker-0.1.2 spec/invoker/config_spec.rb
invoker-0.1.1 spec/invoker/config_spec.rb
invoker-0.1.1.pre spec/invoker/config_spec.rb