diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-18 22:20:23 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-18 22:57:57 +0100 |
| commit | 6c5f73b241d3b31123fbbc61cc4acf76adae8d5e (patch) | |
| tree | 213291754e5a591c0c78f1eef06bdd7f66ff2c79 /test/system/things_test.rb | |
| parent | cb9113ceff41ed374e4ecce2583b4f9e3ff506dc (diff) | |
| download | operum-6c5f73b241d3b31123fbbc61cc4acf76adae8d5e.tar.gz operum-6c5f73b241d3b31123fbbc61cc4acf76adae8d5e.zip | |
thing: removed unique index on title
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'test/system/things_test.rb')
| -rw-r--r-- | test/system/things_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/system/things_test.rb b/test/system/things_test.rb index 792c07f..8b25913 100644 --- a/test/system/things_test.rb +++ b/test/system/things_test.rb @@ -56,15 +56,15 @@ class ThingsTest < ApplicationSystemTestCase test 'you get feedback from wrong values for a new thing' do visit new_thing_url - fill_in I18n.t('activerecord.attributes.thing.title'), with: things(:thing1).title + fill_in I18n.t('activerecord.attributes.thing.title'), with: 'whatever title' fill_in I18n.t('activerecord.attributes.thing.authors'), with: 'author' - fill_in I18n.t('activerecord.attributes.thing.target'), with: 'identifier' + fill_in I18n.t('activerecord.attributes.thing.target'), with: things(:thing1).target fill_in I18n.t('activerecord.attributes.thing.rate'), with: 5 find("#thing_tag_ids_#{tags(:tag1).id}").click click_on I18n.t('helpers.submit.create') - assert_text "#{I18n.t('activerecord.attributes.thing.title')} " \ + assert_text "#{I18n.t('activerecord.attributes.thing.target')} " \ "#{I18n.t('errors.messages.taken')}" end @@ -87,13 +87,13 @@ class ThingsTest < ApplicationSystemTestCase assert_equal tags.map(&:id), [tags(:tag2).id] end - test 'you get feedback from wrong values for a thing' do + test 'you get feedback from wrong values when updating a thing' do visit edit_thing_url(things(:thing1)) - fill_in I18n.t('activerecord.attributes.thing.title'), with: things(:thing2).title + fill_in I18n.t('activerecord.attributes.thing.target'), with: things(:thing2).target click_on I18n.t('helpers.submit.update') - assert_text "#{I18n.t('activerecord.attributes.thing.title')} " \ + assert_text "#{I18n.t('activerecord.attributes.thing.target')} " \ "#{I18n.t('errors.messages.taken')}" end |
