Sha256: 6d9b56d53eacff088e84a58003ff212ba6a1c7cb4e022e00e67bec4010ab788c
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe User do context "dynamic slug fields" do it "should create a slug based on the non-nil field(s)" do user = User.new(:login => "deckard") user.save! user.reload.slug.should == 'deckard' end end it "should preserve capitalization" do user = User.new(:login => "Batty") user.save! user.reload.slug.should == 'Batty' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wulffeld_slug-0.0.16 | spec/lib/user_spec.rb |
wulffeld_slug-0.0.15 | spec/lib/user_spec.rb |