Sha256: 21f595f12e2b90106c49246851921a3e0141b93741399978b0098d48676bdb85
Contents?: true
Size: 774 Bytes
Versions: 8
Compression:
Stored size: 774 Bytes
Contents
require File.expand_path('../fixtures', __FILE__) module Quickl describe "RubyTools#optional_args_block_call /" do subject{ RubyTools::optional_args_block_call(block, args) } describe "when block has no arguments /" do let(:block){ lambda { "ok" } } describe "when no args are given" do let(:args){ [ ] } it { should == "ok" } end describe "when no args are given" do let(:args){ [ "hello" ] } it { should == "ok" } end end describe "when block has one arguments /" do let(:block){ lambda {|name| name } } describe "when args are given" do let(:args){ [ "hello" ] } it { should == "hello" } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems