package com.msgilligan.bitcoin.rpc

import spock.lang.Shared

/**
 * User: sean
 * Date: 6/28/14
 * Time: 4:59 PM
 */
class MSCConsenusSpec extends BaseRPCSpec {
    @Shared
    Long currencyMSC = 1L

    def "Can check all balances"() {
        when: "we check mastercoin balances"
            def balances = client.getallbalancesforid_MP(currencyMSC)

        then: "we get a list of size 1"
            balances.size() == 1
    }

    def "Check all balances, raw CLI, type string"() {
        when: "we check mastercoin balances"
        def balances = client.cliSend("getallbalancesforid_MP", "1")

        then: "we get a list of size 1"
        balances.size() == 1
    }

    def "Check all balances, raw CLI, type integer"() {
        when: "we check mastercoin balances"
        def balances = client.cliSend("getallbalancesforid_MP", 1)

        then: "we get a list of size 1"
        balances.size() == 1
    }

}

package com.msgilligan.bitcoin.rpc

import spock.lang.Shared

/**
 * User: sean
 * Date: 6/28/14
 * Time: 4:59 PM
 */
class MSCConsenusSpec extends BaseRPCSpec {
    @Shared
    Long currencyMSC = 1L

    def "Can check all balances"() {
        when: "we check mastercoin balances"
            def balances = client.getallbalancesforid_MP(currencyMSC)

        then: "we get a list of size <= 1"
            balances.size() <= 1
    }

    def "Check all balances, raw CLI, type string"() {
        when: "we check mastercoin balances"
        def balances = client.cliSend("getallbalancesforid_MP", "1")

        then: "we get a list of size <= 1"
        balances.size() <= 1
    }

    def "Check all balances, raw CLI, type integer"() {
        when: "we check mastercoin balances"
        def balances = client.cliSend("getallbalancesforid_MP", 1)

        then: "we get a list of size <= 1"
        balances.size() <= 1
    }

}

Use balances.size() <= 1 for now
Use balances.size() <= 1 for now