Sha256: 46cf9c7572f2a722b4a4073b81b7e31285bf0f2dbc6d2509aa696089ff1940f5

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

# encoding: UTF-8

require 'spec_helper'

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

  describe '#from' do
    before do
      allow(task).to receive(: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

2 entries across 2 versions & 1 rubygems

Version Path
anvil-core-0.6.0 spec/lib/anvil/parser_spec.rb
anvil-core-0.5.0 spec/lib/anvil/parser_spec.rb