Sha256: ec69f4817fec682ecfc191eaf18fa30743e316756c1387667b6d347cb98a61db
Contents?: true
Size: 405 Bytes
Versions: 5
Compression:
Stored size: 405 Bytes
Contents
require 'spec_helper' describe "Cmds::curry" do it "currys" do base = Cmds::Cmd.new "#{ ECHO_CMD } <%= x %> <%= y %>" x1 = base.curry x: 1 x2 = base.curry x: 2 expect( echo_cmd_argv x1.call y: 'why' ).to eq ['1', 'why'] expect( echo_cmd_argv x2.call y: 'who' ).to eq ['2', 'who'] expect( echo_cmd_argv base.call x: 3, y: 4 ).to eq ['3', '4'] end # it currys end # Cmds::run
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
cmds-0.1.5 | spec/cmds/curry_spec.rb |
cmds-0.1.4 | spec/cmds/curry_spec.rb |
cmds-0.1.3 | spec/cmds/curry_spec.rb |
cmds-0.1.2 | spec/cmds/curry_spec.rb |
cmds-0.1.1 | spec/cmds/curry_spec.rb |