Sha256: 3eb22cb2e4e3d45fbe2b0247ded043903275ad706bd185abedc8c1af1fec7a38
Contents?: true
Size: 377 Bytes
Versions: 3
Compression:
Stored size: 377 Bytes
Contents
require 'spec_helper' describe "Cmds::curry" do it "currys" do base = Cmds.new "./test/echo_cmd.rb <%= x %> <%= y %>" x1 = base.curry x: 1 x2 = base.curry x: 2 expect_argv( x1.call y: 'why' ).to eq ['1', 'why'] expect_argv( x2.call y: 'who' ).to eq ['2', 'who'] expect_argv( base.call x: 3, y: 4 ).to eq ['3', '4'] end # it currys end # Cmds::run
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cmds-0.0.3 | spec/cmds/curry_spec.rb |
cmds-0.0.2 | spec/cmds/curry_spec.rb |
cmds-0.0.1 | spec/cmds/curry_spec.rb |