spec/rackspace/requests/servers/reboot_server_spec.rb in fog-0.0.40 vs spec/rackspace/requests/servers/reboot_server_spec.rb in fog-0.0.41

- old
+ new

@@ -3,28 +3,28 @@ describe 'Rackspace::Servers.reboot_server' do describe 'success' do before(:each) do # flavor 1 = 256, image 3 = gentoo 2008.0 - @server_id = servers.create_server(1, 3, 'name').body['server']['id'] + @server_id = Rackspace[:servers].create_server(1, 3, 'name').body['server']['id'] end after(:each) do eventually(128) do - servers.delete_server(@server_id) + Rackspace[:servers].delete_server(@server_id) end end it "should return proper attributes" do - servers.reboot_server(@server_id, 'HARD') + Rackspace[:servers].reboot_server(@server_id, 'HARD') end end describe 'failure' do it "should raise a NotFound error if the server does not exist" do lambda do - servers.reboot_server(0, 'HARD') + Rackspace[:servers].reboot_server(0, 'HARD') end.should raise_error(Excon::Errors::NotFound) end end end \ No newline at end of file