spec/whm/account_spec.rb in lumberg-1.0.1 vs spec/whm/account_spec.rb in lumberg-1.0.3
- old
+ new
@@ -37,10 +37,9 @@
:nameservera3, :package, :nameservera4, :nameserver2,
:nameservera, :nameserver3)
end
it "returns an error on duplicate accounts" do
- @account.create(:username => 'invalid', :password => 'hummingbird123', :domain => 'invalid-thing.com')
result = @account.create(:username => 'invalid', :password => 'hummingbird123', :domain => 'invalid-thing.com')
result[:success].should be(false)
result[:message].should match(/username already exists/i)
end
end