Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- context 'valid range of duration' do
- before do
- @event_configuration = EventsConfiguration.new(account_id: account.id, duration: 5, event_type: 'speeding', event_value: 9)
- end
- it 'valid duration' do
- expect(@event_configuration.valid?).to eq true
- end
- it 'invalid range duration' do
- @event_configuration.duration = 1000
- expect(@event_configuration.valid?).to eq false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement