ability to set custom maximum space

This commit is contained in:
Kyle Drake 2015-08-21 14:42:05 -07:00
parent 0c8bba8114
commit 3035175c4f
3 changed files with 24 additions and 1 deletions

View file

@ -5,6 +5,16 @@ def app
end
describe Site do
describe 'custom_max_space' do
it 'should use the custom max space if it is more' do
site = Fabricate :site
site.maximum_space.must_equal Site::PLAN_FEATURES[:free][:space]
site.custom_max_space = 10**9
site.save_changes
site.maximum_space.must_equal 10**9
end
end
describe 'can_email' do
it 'should fail if send_emails is false' do
site = Fabricate :site