spec/whm/server_spec.rb in lumberg-2.0.0.pre12 vs spec/whm/server_spec.rb in lumberg-2.0.0.pre15

- old
+ new

@@ -343,7 +343,25 @@ result = @whm.show_bandwidth(year: 2011, month: 5) result[:params][:month].to_i.should == 5 result[:params][:acct].should have(3).accounts end end + + describe "#list_hooks" do + use_vcr_cassette "whm/server/list_hooks" + + it "retrieves available hooks" do + result = @whm.list_hooks + result[:success].should be_true + end + end + + describe "#edit_hook" do + use_vcr_cassette "whm/server/edit_hook" + + it "changes a hook state" do + result = @whm.edit_hook(id: '1234', disabled: 1) + result[:success].should be_true + end + end end end