Sha256: 03f93b30bfd785f10b2adffac1045e126f4e8b6a26b28368fd728d3bb9325a93

Contents?: true

Size: 453 Bytes

Versions: 22

Compression:

Stored size: 453 Bytes

Contents

require 'rubygems'
require 'rest_connection'
require 'ruby-debug'

describe Tag, "tags" do
  it "a server" do
    mytags = ["provides:rs_blah=blah"]
    search = ["provides:rs_blah"]
    #mytags = ["blah", "blah2"]
    s = Server.find(:first)
    t = Tag.set(s.href, mytags)
    t.response.code.should == "204"
    f = Tag.search("server", mytags)
    f.size.should > 0
    t2 = Tag.unset(s.href, mytags) 
    t2.response.code.should == "204"
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rest_connection-1.0.16 spec/tag_spec.rb
rest_connection-1.0.15 spec/tag_spec.rb
rest_connection-1.0.14 spec/tag_spec.rb
rest_connection-1.0.13 spec/tag_spec.rb
rest_connection-1.0.12 spec/tag_spec.rb
rest_connection-1.0.11 spec/tag_spec.rb
rest_connection-1.0.10 spec/tag_spec.rb
rest_connection-1.0.9 spec/tag_spec.rb
rest_connection-1.0.8 spec/tag_spec.rb
rest_connection-1.0.7 spec/tag_spec.rb
rest_connection-1.0.6 spec/tag_spec.rb
rest_connection-1.0.5 spec/tag_spec.rb
rest_connection-1.0.4 spec/tag_spec.rb
rest_connection-1.0.3 spec/tag_spec.rb
rest_connection-1.0.2 spec/tag_spec.rb
rest_connection-1.0.1 spec/tag_spec.rb
rest_connection-1.0.0 spec/tag_spec.rb
rest_connection-0.1.12 spec/tag_spec.rb
rest_connection-0.1.11 spec/tag_spec.rb
rest_connection-0.1.10 spec/tag_spec.rb