This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'PUT update_setting' do | |
it 'should not set the screenshot frequency to an invalid value' do | |
put_with user, :update_setting, { id: organization.to_param, setting: 'delete_screens_allowed', value: 100 } | |
organization.reload | |
organization.settings[:delete_screens_allowed].should_not be(100) | |
end | |
end |