Sha256: cda73f44738a3f54e335077495b48c7b9ffa51c8cce95152fe38a829fed326d7
Contents?: true
Size: 626 Bytes
Versions: 4
Compression:
Stored size: 626 Bytes
Contents
require 'spec_helper' module Alf module Support describe Scope, '__branch' do let(:scope) { Scope.new [ HelpersInScope ] } subject{ scope.__branch(arg) } context 'when branched with a Tuple' do let(:arg){ {:here => "here"} } it_behaves_like 'A scope' it 'responds to the tuple keys' do subject.respond_to?(:here).should be_true subject.here.should eq("here") end it "responds to helper's methods" do subject.respond_to?(:world).should be_true subject.world.should eq('world') end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems