Skip to content

Commit

Permalink
Uniqueness: Add missing tests for text columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Feb 12, 2015
1 parent 81034ea commit 59c8511
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -312,6 +312,11 @@
value_type: :time
end

context 'when one of the scoped attributes is a text column' do
include_context 'it supports scoped attributes of a certain type',
column_type: :text
end

if database_supports_uuid_columns?
context 'when one of the scoped attributes is a UUID column' do
include_context 'it supports scoped attributes of a certain type',
Expand Down Expand Up @@ -616,7 +621,7 @@ def attributes_with_values_for(model)

def dummy_value_for(attribute_type)
case attribute_type
when :string
when :string, :text
'dummy value'
when :integer
1
Expand Down

0 comments on commit 59c8511

Please sign in to comment.