cartodb-4.42/spec/lib/cartodb/stats/platform_spec.rb

15 lines
401 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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