We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 219d5f5 + c8fbb91 commit 108e64aCopy full SHA for 108e64a
spec/features/admin/picture_library_integration_spec.rb
@@ -99,6 +99,9 @@
99
select(language.language_code.upcase, from: "Language")
100
expect(page).to have_field("Description", with: "This is an amazing image.")
101
102
+ # Make sure we have the latest records before making assumptions
103
+ picture.descriptions.reload
104
+
105
expect(picture.descriptions.size).to eq(2)
106
expect(picture.descriptions.find_by(language: german).text).to eq("Tolles Bild.")
107
expect(picture.descriptions.find_by(language: language).text).to eq("This is an amazing image.")
0 commit comments