set a language flag in database

This commit is contained in:
2015-11-09 10:33:26 +01:00
parent d8f0d0da57
commit 003ebe7bd0
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@ feature 'Support announcement' do
supporter = Supporter.find_by(email: 'blocher@blocher.ch')
expect(supporter.coordinates).to eq [8.618589100000001, 47.2926304]
expect(supporter.comments).to eq 'Test text'
expect(supporter.language).to eq 'de'
end
scenario 'A bot tries to enter data' do
+1
View File
@@ -10,6 +10,7 @@ describe Supporter do
it { is_expected.to validate_uniqueness_of(:email) }
it { is_expected.to validate_presence_of(:support) }
it { is_expected.to validate_presence_of(:age_category) }
it { is_expected.to validate_presence_of(:language) }
describe '.counter' do
it 'counts only from a certain number on' do