$:.unshift File.expand_path("../..", __FILE__)

require 'lib/lxc'

def fixture_path(filename=nil)
  path = File.expand_path("../fixtures", __FILE__)
  filename.nil? ? path : File.join(path, filename)
end

def fixture(file)
  File.read(File.join(fixture_path, file))
end

def stub_lxc(command, *args)
  output = yield

  LXC.should_receive(:run)
    .exactly(1).times
    .with(command, *args)
    .and_return(output)
end
$:.unshift File.expand_path("../..", __FILE__)

require 'lib/lxc'

def fixture_path(filename=nil)
  path = File.expand_path("../fixtures", __FILE__)
  filename.nil? ? path : File.join(path, filename)
end

def fixture(file)
  File.read(File.join(fixture_path, file))
end

def stub_lxc(command, *args)
  output = yield

  LXC.should_receive(:run).
    exactly(1).times.
    with(command, *args).
    and_return(output)
end
Fix long method call for 1.8.7
Fix long method call for 1.8.7
