Sha256: 38bdc2e21c958fbd562a6420d62bcfe3b01559029a1037e9bc231d97a0ea3a5e
Contents?: true
Size: 584 Bytes
Versions: 7
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' module Sexpr describe Grammar::Options, "install_root" do include Grammar::Options let(:rules){ {:t => /[a-z]+/, :nt => true} } it 'is the first key by default' do install_options :rules => rules do root.should eq(:t) end end it 'is the specified rule when specified' do install_options :rules => rules, :root => :nt do root.should eq(:nt) end end it 'is converted to a Symbol is a String' do install_options :root => "nt" do root.should eq(:nt) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems