diff options
author | Azul <azul@leap.se> | 2013-08-31 15:15:53 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-09-03 08:54:25 +0200 |
commit | 214ef762a970989e09be1960c5551c0a4d3f4421 (patch) | |
tree | ab3f296496071937d0bb51aa55eacbee989065fe /billing/test/unit/customer_test.rb | |
parent | 859b79d0dcd53c85bb57e3db888a1af702802987 (diff) |
do not leave behind users in billing unit and functional tests
Diffstat (limited to 'billing/test/unit/customer_test.rb')
-rw-r--r-- | billing/test/unit/customer_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/billing/test/unit/customer_test.rb b/billing/test/unit/customer_test.rb index 2ea0b5e..6156f87 100644 --- a/billing/test/unit/customer_test.rb +++ b/billing/test/unit/customer_test.rb @@ -1,9 +1,11 @@ require 'test_helper' class CustomerTest < ActiveSupport::TestCase + include StubRecordHelper setup do - @customer = FactoryGirl.build(:customer) + @user = find_record :user + @customer = FactoryGirl.build(:customer, user: @user) end test "test set of attributes should be valid" do |