diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:23 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:23 +0200 |
commit | 4c208254573c3428d82bd8744860bd86e1c78acb (patch) | |
tree | 9c8194acb75552fdda62d527d5c2876da9161650 /activemodel/test/cases/validations/with_validation_test.rb | |
parent | 18a2513729ab90b04b1c86963e7d5b9213270c81 (diff) | |
download | rails-4c208254573c3428d82bd8744860bd86e1c78acb.tar.gz rails-4c208254573c3428d82bd8744860bd86e1c78acb.tar.bz2 rails-4c208254573c3428d82bd8744860bd86e1c78acb.zip |
applies new string literal convention in activemodel/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
Diffstat (limited to 'activemodel/test/cases/validations/with_validation_test.rb')
-rw-r--r-- | activemodel/test/cases/validations/with_validation_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/test/cases/validations/with_validation_test.rb b/activemodel/test/cases/validations/with_validation_test.rb index c73580138d..4932ce1d9a 100644 --- a/activemodel/test/cases/validations/with_validation_test.rb +++ b/activemodel/test/cases/validations/with_validation_test.rb @@ -1,6 +1,6 @@ -require 'cases/helper' +require "cases/helper" -require 'models/topic' +require "models/topic" class ValidatesWithTest < ActiveModel::TestCase @@ -160,7 +160,7 @@ class ValidatesWithTest < ActiveModel::TestCase topic = Topic.new assert !topic.valid? - assert_equal ['is missing'], topic.errors[:title] + assert_equal ["is missing"], topic.errors[:title] end test "optionally pass in the attribute being validated when validating with an instance method" do @@ -169,6 +169,6 @@ class ValidatesWithTest < ActiveModel::TestCase topic = Topic.new title: "foo" assert !topic.valid? assert topic.errors[:title].empty? - assert_equal ['is missing'], topic.errors[:content] + assert_equal ["is missing"], topic.errors[:content] end end |