Sha256: be7e3b0c6c15ab77878a561e6970b4fbf4a32eed0c96f3e1875fdbf0fb5558db

Contents?: true

Size: 681 Bytes

Versions: 19

Compression:

Stored size: 681 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper')
require 'ruby-debug'

describe RightScriptInternal, "exercises the right_script internal api" do

  it "should do some stuff" do
    @some_script = RightScriptInternal.new(:href => "https://my.rightscale.com/api/acct/2901/right_scripts/256669")

    # Test commit
    @some_script.commit("hello commits world")

    # Test clone
    @new_script = @some_script.clone

    # Test update
    @same_script = RightScriptInternal.new(:href => @new_script.href)
    @same_script.name = "newname123"
    @same_script.save

  end

  after(:all) do
    # can't cleanup, don't have destroy calls
    #@new_script.destroy
  end
  

end

Version data entries

19 entries across 19 versions & 1 rubygems

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