cartodb-4.42/spec/lib/cartodb/stats/platform_spec.rb
2024-04-06 05:25:13 +00:00

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