Skip to content

Commit

Permalink
fixes #2334 - location matcher doesn't match on smart parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Mitchell Magen authored and Dominic Cleal committed Jun 12, 2013
1 parent 8da68b8 commit c7f5277
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/taxonomy.rb
Expand Up @@ -32,7 +32,7 @@ def to_param
end

def to_label
name =~ /[A-Z]/ ? name : name.capitalize
name
end

def self.locations_enabled
Expand Down
2 changes: 1 addition & 1 deletion test/unit/location_test.rb
Expand Up @@ -24,7 +24,7 @@ class LocationTest < ActiveSupport::TestCase

test 'it should show the name for to_s' do
location = Location.new :name => "location name"
assert location.to_s == "Location name"
assert location.to_s == "location name"
end

test 'location is invalid without any taxable_taxonomies' do
Expand Down
2 changes: 1 addition & 1 deletion test/unit/organization_test.rb
Expand Up @@ -24,7 +24,7 @@ class OrganizationTest < ActiveSupport::TestCase

test 'it should show the name for to_s' do
organization = Organization.new :name => "organization1"
assert organization.to_s == "Organization1"
assert organization.to_s == "organization1"
end

test 'organization is invalid without any taxable_taxonomies' do
Expand Down

0 comments on commit c7f5277

Please sign in to comment.