aboutsummaryrefslogtreecommitdiffstats
path: root/lib/configuration.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2015-04-11 16:38:26 +1000
committerHenare Degan <henare.degan@gmail.com>2015-04-11 16:38:26 +1000
commitdb143557a9bbfd2d92ebff6f4cb0139da50c5d44 (patch)
tree6cfc98c2dcacc5fb7a18559f2b99037ff81d000a /lib/configuration.rb
parent8c72a2590a6c0a5f21491b96f44eeb8da53663bd (diff)
Check for blank values, not just an empty string
On my machine the integration test "Editing a Public Body can add a translation for multiple locales" (http://git.io/vvv9t) was failing because when it submitted the form to update one locale it created empty records for all locales resulting in the test (http://git.io/vvv93) for a nil locale to fail. It was doing this because when it submitted the form it included a notes field with a single newline character and so this method evaluated as false and therefore a largely blank translation was created.
Diffstat (limited to 'lib/configuration.rb')
0 files changed, 0 insertions, 0 deletions