Sha256: 45afe255c4fd0a143bfa992bbc0cf8f7713272e78f952a9469c3ea00e8dae1c8

Contents?: true

Size: 674 Bytes

Versions: 6

Compression:

Stored size: 674 Bytes

Contents

require 'spec_helper'
module Sexpr
  describe Processor, "helper" do

    it 'installs the helping class in the registered helpers' do
      Processor.helpers.should eq([])
      FooProcessor.helpers.should eq([FooHelper])
      BarProcessor.helpers.should eq([FooHelper, BarHelper])
    end

    it 'extends the processor classes with Methods modules' do
      FooProcessor.included_modules.should be_include(FooHelper::Methods)
      FooProcessor.included_modules.should_not be_include(BarHelper::Methods)
      BarProcessor.included_modules.should be_include(FooHelper::Methods)
      BarProcessor.included_modules.should be_include(BarHelper::Methods)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sexpr-1.1.0 spec/unit/processor/test_helper.rb
sexpr-1.0.0 spec/unit/processor/test_helper.rb
sexpr-0.6.0 spec/unit/processor/test_helper.rb
sexpr-0.5.1 spec/processor/test_helper.rb
sexpr-0.5.0 spec/processor/test_helper.rb
sexpr-0.4.0 spec/processor/test_helper.rb