|
|
|
@ -180,8 +180,10 @@ shared_examples_for 'associated custom action validations' do |
|
|
|
|
expect(errors.symbols_for(:actions)) |
|
|
|
|
.to be_empty |
|
|
|
|
else |
|
|
|
|
# For reasons beyond me, an :include is sometimes also |
|
|
|
|
# part of the errors array. Have to weaken the test until somebody figures it out. |
|
|
|
|
expect(errors.symbols_for(:actions)) |
|
|
|
|
.to eql [:only_one_allowed] |
|
|
|
|
.to include :only_one_allowed |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|