ckdake / setler

Setler lets you use the 'Feature Flags' pattern or add settings to models in Rails
MIT License
84 stars 21 forks source link

Fix failing travis build by conditionalizing assertion #42

Closed tsubery closed 8 years ago

tsubery commented 8 years ago

The assertion about the string "UNIQUE" is relevant only in the case of activerecord 3. The previous code did not work correctly because ActiveRecord::RecordNotUnique is actually a descendant of ActiveRecord::StatementInvalid.

ckdake commented 8 years ago

Lets see how this one works :)

jasnow commented 8 years ago

Green build: https://travis-ci.org/ckdake/setler/builds/97231732