Sha256: becadb5eb9c4e3ee23dca1bbf790eaf312681c639b685cd69500079e9119cca6

Contents?: true

Size: 635 Bytes

Versions: 41

Compression:

Stored size: 635 Bytes

Contents

#
# Test Chimp
#
$LOAD_PATH << File.dirname(__FILE__) + "/.."
require 'lib/right_chimp.rb'
require 'rspec'

describe Chimp::Chimp do
  before :each do
    @c = Chimp::Chimp.new
    @c.quiet = true
    @c.prompt = false
    @c.progress = false
    @c.interactive = false
  end
  
  it "performs a tag query" do
    @c.tags = ['service:dataservice=true']
    @c.run
    @c.servers.size.should > 0
  end
  
  it "performs a deployment query" do
    @c.deployment_names = ['moo:globalring']
    @c.run
    @c.servers.size.should > 0
  end
  
  it "performs an array query" do
    @c.array_names = ['Chimp Test Array']
    @c.run
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
right_chimp-2.1.28 spec/spec_selection.rb
right_chimp-2.1.27 spec/spec_selection.rb
right_chimp-2.1.26 spec/spec_selection.rb
right_chimp-2.1.25.2 spec/spec_selection.rb
right_chimp-2.1.25 spec/spec_selection.rb
right_chimp-2.1.24 spec/spec_selection.rb
right_chimp-2.1.22.2 spec/spec_selection.rb
right_chimp-2.1.22.1 spec/spec_selection.rb
right_chimp-2.1.22 spec/spec_selection.rb
right_chimp-2.1.21 spec/spec_selection.rb
right_chimp-2.1.19.1 spec/spec_selection.rb
right_chimp-2.1.19 spec/spec_selection.rb
right_chimp-2.1.18 spec/spec_selection.rb
right_chimp-2.1.17 spec/spec_selection.rb
right_chimp-2.1.15 spec/spec_selection.rb
right_chimp-2.1.14 spec/spec_selection.rb
right_chimp-2.1.13 spec/spec_selection.rb
right_chimp-2.1.12 spec/spec_selection.rb
right_chimp-2.1.10 spec/spec_selection.rb
right_chimp-2.1.8 spec/spec_selection.rb