Sha256: 9569d6e7b0971a314b11a2bf28ae6d2d0cec900e69604b1411dafe08c64e57f4
Contents?: true
Size: 939 Bytes
Versions: 13
Compression:
Stored size: 939 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' class TestRemoteClass < PoolParty::Remote::RemoteInstance include CloudResourcer include PoolParty::Remote end describe "RemoterBase" do before(:each) do setup end describe "methods" do before(:each) do @tr = TestRemoteClass.new end %w(launch_new_instance! terminate_instance describe_instance instances_list).each do |method| eval <<-EOE it "should raise an exception if #{method} is not defined as a method" do # pending # Weird .should raise_error lambda { @tr.class.#{method} }.should raise_error end it "should not raise an exception if #{method} is defined as a method" do lambda { @tr.instance_eval do def #{method} end end @tr.#{method} }.should_not raise_error end EOE end end end
Version data entries
13 entries across 13 versions & 3 rubygems