Sha256: e058f82ff084c6c37b80feb5385a7f0c7a7fa200918cf7f5be9847e52e932ec6

Contents?: true

Size: 468 Bytes

Versions: 24

Compression:

Stored size: 468 Bytes

Contents

require 'rubygems'
require 'rest_connection'
require 'spec'
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

24 entries across 24 versions & 1 rubygems

Version Path
rest_connection-0.1.7 spec/tag_spec.rb
rest_connection-0.1.6 spec/tag_spec.rb
rest_connection-0.1.5 spec/tag_spec.rb
rest_connection-0.1.4 spec/tag_spec.rb
rest_connection-0.1.3 spec/tag_spec.rb
rest_connection-0.1.2 spec/tag_spec.rb
rest_connection-0.1.1 spec/tag_spec.rb
rest_connection-0.1.0 spec/tag_spec.rb
rest_connection-0.0.23 spec/tag_spec.rb
rest_connection-0.0.22 spec/tag_spec.rb
rest_connection-0.0.21 spec/tag_spec.rb
rest_connection-0.0.20 spec/tag_spec.rb
rest_connection-0.0.19 spec/tag_spec.rb
rest_connection-0.0.18 spec/tag_spec.rb
rest_connection-0.0.17 spec/tag_spec.rb
rest_connection-0.0.16 spec/tag_spec.rb
rest_connection-0.0.15 spec/tag_spec.rb
rest_connection-0.0.14 spec/tag_spec.rb
rest_connection-0.0.13 spec/tag_spec.rb
rest_connection-0.0.12 spec/tag_spec.rb