Sha256: 7e5a363cb18bd1ab0ebcb47f0fe2dd6e855b00ffc77465284f8f264d5f9eb0ca

Contents?: true

Size: 434 Bytes

Versions: 15

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper'

describe Consul::Util do

  describe '.adjective_and_argument' do

    it 'should return [nil, argument] if given a single argument' do
      Consul::Util.adjective_and_argument(Deal).should == [nil, Deal]
    end

    it 'should return [adjective, argument] if given an adjective and an argument' do
      Consul::Util.adjective_and_argument('updatable', Deal).should == ['updatable', Deal]
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
consul-0.12.2 spec/shared/consul/util_spec.rb
consul-0.12.1 spec/shared/consul/util_spec.rb
consul-0.12.0 spec/shared/consul/util_spec.rb
consul-0.11.2 spec/shared/consul/util_spec.rb
consul-0.11.1 spec/shared/consul/util_spec.rb
consul-0.11.0 spec/shared/consul/util_spec.rb
consul-0.10.2 spec/shared/consul/util_spec.rb
consul-0.10.1 spec/shared/consul/util_spec.rb
consul-0.10.0 spec/shared/consul/util_spec.rb
consul-0.9.1 spec/shared/consul/controllers/util_spec.rb
consul-0.9.0 spec/shared/consul/controllers/util_spec.rb
consul-0.8.0 spec/shared/consul/controllers/util_spec.rb
consul-0.7.0 spec/shared/consul/controllers/util_spec.rb
consul-0.6.1 spec/shared/consul/controllers/util_spec.rb
consul-0.6.0 spec/shared/consul/controllers/util_spec.rb