spec/lib/hugo/aws/elb_spec.rb in hugo-0.3.5 vs spec/lib/hugo/aws/elb_spec.rb in hugo-0.4.0

- old
+ new

@@ -7,30 +7,31 @@ mock_rds end it "should create a new instance" do - @hugo_elb = Hugo::Aws::Elb.new(:name => "myserver").should be_true - @hugo_elb.save.should be_true + @hugo_elb = Hugo::Aws::Elb.new(:name => "myserver") + @hugo_elb.should_not be_nil + @hugo_elb.save.should_not be_nil end # it "should return all" do - Hugo::Aws::Elb.all.length.should == 1 + Hugo::Aws::Elb.all("1","2").length.should == 1 end # # it "should find elb instance" do - Hugo::Aws::Elb.find('test').should_not be_nil + Hugo::Aws::Elb.find('test',"1","2").should_not be_nil end # it "should delete elb instance" do - Hugo::Aws::Elb.find('test').destroy.should_not be_nil + Hugo::Aws::Elb.find('test',"1","2").destroy.should_not be_nil end it "should add ec2 intance" do - Hugo::Aws::Elb.find('test').add('i-12345678').instances.length.should == 1 + Hugo::Aws::Elb.find('test',"1","2").add('i-12345678').instances.length.should == 1 end it "should remove ec2 instance" do - Hugo::Aws::Elb.find('test').remove('i-12345678').instances.length.should == 0 + Hugo::Aws::Elb.find('test',"1","2").remove('i-12345678').instances.length.should == 0 end end