Skip to content

Commit

Permalink
Fix tag factory: display name, if set, should not be different from n…
Browse files Browse the repository at this point in the history
…ame.
  • Loading branch information
mvz committed Jul 18, 2011
1 parent e4838cd commit 775fcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def some_article

Factory.define :tag do |tag|
tag.name {Factory.next(:name)}
tag.display_name {Factory.next(:name)}
tag.display_name { |a| a.name }
end

Factory.define :resource do |r|
Expand Down

0 comments on commit 775fcc4

Please sign in to comment.