Sha256: 11d8c405baf4f9f7b4180a7642a57c9b4469da06844b6f52182cd3e710bfbac7

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 Bytes

Contents

# encoding: UTF-8

require 'spec_helper'

describe Anvil::Parser do
  let(:task) { DummyTask }

  describe '#from' do
    before do
      task.stub(:parser_block).and_return(proc { 'opts' })
    end

    it 'inherits parser block from another task' do
      expect(subject.from('dummy')).to eq('opts')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
anvil-core-0.4.2 spec/lib/anvil/parser_spec.rb
anvil-core-0.4.1 spec/lib/anvil/parser_spec.rb
anvil-core-0.4.0 spec/lib/anvil/parser_spec.rb
anvil-core-0.3.2 spec/lib/anvil/parser_spec.rb
anvil-core-0.3.1 spec/lib/anvil/parser_spec.rb
anvil-core-0.3.0 spec/lib/anvil/parser_spec.rb
anvil-core-0.2.0 spec/lib/anvil/parser_spec.rb
anvil-core-0.1.0 spec/lib/anvil/parser_spec.rb