15 lines
401 B
Ruby
15 lines
401 B
Ruby
|
require_relative '../../../spec_helper'
|
||
|
|
||
|
describe CartoDB::Stats::Platform do
|
||
|
describe '#pay_users' do
|
||
|
it 'returns only paid users' do
|
||
|
pay_users = CartoDB::Stats::Platform.new.pay_users
|
||
|
|
||
|
FactoryGirl.create(:user, account_type: 'FREE')
|
||
|
FactoryGirl.create(:user, account_type: 'MAGELLAN')
|
||
|
|
||
|
CartoDB::Stats::Platform.new.pay_users.should == (pay_users + 1)
|
||
|
end
|
||
|
end
|
||
|
end
|