Rspec shared to test min value attribute