Sha256: 8cc0032a30caad022548ad435288a5a57f4ff46d649259b89e8d66a1883b880f

Contents?: true

Size: 684 Bytes

Versions: 2

Compression:

Stored size: 684 Bytes

Contents

require 'spec_helper'

describe DataForge::DSL::Helpers do

  subject { Object.new.extend described_class }

  describe "PARAMS" do
    it "should return the user parameters passed in through the CLI" do
      expect(DataForge::CLI).to receive(:user_params).and_return "user defined parameters"

      expect(subject.instance_eval { PARAMS }).to eq "user defined parameters"
    end
  end


  describe "COMMAND_SCRIPT" do
    it "should return the command script that is currently executing" do
      expect(DataForge::CLI).to receive(:command_script).and_return "command_script.rb"

      expect(subject.instance_eval { COMMAND_SCRIPT }).to eq "command_script.rb"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
data_forge-0.1.1 spec/data_forge/dsl/helpers_spec.rb
data_forge-0.1 spec/data_forge/dsl/helpers_spec.rb