Sha256: ea277659a48747a0db640ecb7221318f45e87ec745f410ed052be5dac1de8f64

Contents?: true

Size: 580 Bytes

Versions: 4

Compression:

Stored size: 580 Bytes

Contents

require_relative "spec_helper"
require "lignite"

require "fileutils"

describe Lignite::SystemCommands do
  shared_examples "example runner" do |base|
    let(:example_dir) { File.expand_path("../../examples", __FILE__) }

    let(:script) { "#{example_dir}/#{base}.rb" }
    let(:replay_yml) { "#{example_dir}/#{base}.yml" }

    before(:each) { Lignite::Message.reset_msgid }

    it "correctly runs #{base}.rb" do
      ENV["LIGNITE_REPLAY"] = replay_yml
      expect { load(script) }.not_to raise_error
    end
  end

  it_behaves_like "example runner", "sys_list_files"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lignite-0.6.0 spec/system_commands_spec.rb
lignite-0.5.0 spec/system_commands_spec.rb
lignite-0.4.0 spec/system_commands_spec.rb
lignite-0.3.0 spec/system_commands_spec.rb