Sha256: bbf76a51e95f04f4ded85f46a0c1d48a4ca184e4e886190d6502d2a81406a5ff
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
require 'rspec/jabs_spec_helper' describe Jabs::Precompiler, ".defined_folds" do it "defines Line" do Jabs::Precompiler.defined_folds.should include(Jabs::Precompiler::Line) end it "defines Action" do Jabs::Precompiler.defined_folds.should include(Jabs::Precompiler::Action) end it "defines Selector" do Jabs::Precompiler.defined_folds.should include(Jabs::Precompiler::Selector) end end describe Jabs::Precompiler, ".produce" do before(:each) {@it= Jabs::Precompiler.new} it "produces Lines" do @it.produce('LINE').is_a?(Jabs::Precompiler::Line).should == true end it "produces Actions" do @it.produce('!LINE').is_a?(Jabs::Precompiler::Action).should == true end it "produces Selectors" do @it.produce('?LINE').is_a?(Jabs::Precompiler::Selector).should == true end end describe Jabs::Precompiler::Line::Regex do it "should match anything" do Jabs::Precompiler::Line::Regex.should match('anything') end end describe Jabs::Precompiler::Action::Regex do it "should match !actions" do Jabs::Precompiler::Action::Regex.should match("!actions") end end describe Jabs::Precompiler::Selector::Regex do it "should match ?selectors" do Jabs::Precompiler::Selector::Regex.should match("?selectors") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
collin-lucky7-0.0.1 | rspec/jabs/jabs_precompiler_spec.rb |