Sha256: 390230c34345cc6522894bccbae8cd03643de623abecbfdaccd0402558e7af7a

Contents?: true

Size: 678 Bytes

Versions: 17

Compression:

Stored size: 678 Bytes

Contents

require_relative "../../../spec_helper"

describe Rsense::Server::Command::SpecialMeth do
  before do
    @spec_meth = Rsense::Server::Command::SpecialMeth.new() do |runtime, receivers, args, blcck, result|
      { runtime: runtime,
        receivers: receivers,
        args: args,
        blcck: blcck,
        result: result
      }
    end
  end

  it "calls block with args" do
    meth_hash = @spec_meth.call("run", "rec", "args", "blcck", "result")
    meth_hash[:runtime].must_match(/run/)
    meth_hash[:receivers].must_match(/rec/)
    meth_hash[:args].must_match(/args/)
    meth_hash[:blcck].must_match(/blcck/)
    meth_hash[:result].must_match(/result/)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rsense-server-0.5.18 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.17 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.16 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.15 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.14 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.13 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.12 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.11 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.10 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.9 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.8 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.7 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.6 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.5 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.4 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.2 spec/rsense/server/command/special_meth_spec.rb
rsense-server-0.5.0 spec/rsense/server/command/special_meth_spec.rb