Sha256: 54a993f03c583ff7972f3bd4ec13067e97e5f3e4c8edbf0f039a130c23257756

Contents?: true

Size: 426 Bytes

Versions: 26

Compression:

Stored size: 426 Bytes

Contents

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

describe Server, "using a server" do
  before(:all) do
  end

  it "should use method_missing for assignment" do
    @server = Server.find(37842) # hardcoded, you must change to valid server in your account
    @server.max_spot_price = "0.01"
    @server.pricing = "spot"
    @server.save
    @server.max_spot_price.should == "0.01"
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

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