Sha256: ce8becbcee591a9c6aef95b5fbbfd51aa2b20c76132eec500c5f6bc337d50d58
Contents?: true
Size: 714 Bytes
Versions: 4
Compression:
Stored size: 714 Bytes
Contents
require 'spec_helper' module Gisele describe Language do include Language describe "rule2mod" do it 'work on simple rule name' do rule2mod(:test).should eq(:Test) end it 'works when underscores are present' do rule2mod(:a_rule_name).should eq(:ARuleName) end end # rule2mod describe "mod2rule" do it 'work on simple module name' do mod2rule(:Test).should eq(:test) end it 'work on complex module name' do mod2rule(:ThisIsATest).should eq(:this_is_a_test) end it 'works with a module' do mod2rule(::Gisele::Language::Syntax::WhileSt).should eq(:while_st) end end # rule2mod end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gisele-0.4.0 | spec/unit/test_language.rb |
gisele-0.3.0 | spec/unit/test_language.rb |
gisele-0.2.0 | spec/unit/test_language.rb |
gisele-0.1.0 | spec/unit/test_language.rb |