Sha256: 6cbd22a9bec463d5f711002f26a80bec2a2733945f8d6ee77d7011016afd913b
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Evaluator::Context, '#send' do subject { object.send(method, args, &block) } let(:attribute) { Attribute::Integer.new(:id) } let(:header) { Relation::Header.new([attribute]) } let(:object) { described_class.new(header) {} } let(:method) { :test } let(:args) { double('Arguments') } let(:block) { proc {} } before do def object.test(args, &block) [args, block] end end it 'delegates the arguments to the method' do subject[0].should be(args) end it 'delegates the block to the method' do subject[1].should be(block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/axiom/evaluator/context/send_spec.rb |