Created
December 19, 2014 20:23
-
-
Save biscuitvile/7e6479ff25bcf657ff1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "validates that names won't create identical permalinks" do | |
account = Factory(:account) | |
account.artists.create(:name => 'John Boy') | |
a = Factory.build(:artist, :name => '!john $boy#', :account => account) | |
a.should_not be_valid | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment