Permalink
Browse files

move test

  • Loading branch information...
1 parent d17ef90 commit 81d8ba562dd956fb707e4103399b31db10ddc930 @davidsulc davidsulc committed Apr 8, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 test/test_sugarcrm.rb
View
@@ -1,18 +1,16 @@
require 'helper'
class TestSugarCRM < ActiveSupport::TestCase
- context "The SugarCRM::Base class" do
- should "should ignore 'id' attibute when creating an instance" do
+ context "A class inheriting SugarCRM::Base" do
+ should "ignore 'id' attibute when creating an instance" do
first_account = SugarCRM::Account.first
new_account = nil
assert_difference('SugarCRM::Account.count') do
new_account = SugarCRM::Account.create(first_account.attributes)
end
assert first_account.id != new_account.id
end
- end
-
- context "A class inheriting SugarCRM::Base" do
+
should "implement self.class.count" do
nb_accounts = SugarCRM::Account.count
assert nb_accounts > 0

0 comments on commit 81d8ba5

Please sign in to comment.