Sha256: a9fdb146a9816973bc5d8f25f7f8b192c8956d557f0efd800972fc4f1dfe8b30

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'
module Sexpr
  describe Grammar::Options, "install_path" do
    include Grammar::Options

    it 'is nil by default' do
      install_options({}) do
        path.should be_nil
      end
    end

    it 'keeps the specified value if any' do
      install_options :path => "blah" do
        path.should eq("blah")
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sexpr-1.1.0 spec/unit/grammar/options/test_install_path.rb
sexpr-1.0.0 spec/unit/grammar/options/test_install_path.rb
sexpr-0.6.0 spec/unit/grammar/options/test_install_path.rb
sexpr-0.5.1 spec/grammar/options/test_install_path.rb
sexpr-0.5.0 spec/grammar/options/test_install_path.rb
sexpr-0.4.0 spec/grammar/options/test_install_path.rb
sexpr-0.3.0 spec/grammar/options/test_install_path.rb