Fixed some broken tests for displaying member location

This commit is contained in:
Skud
2013-08-19 17:59:40 +10:00
parent b2ab29397e
commit 3d19772515
2 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
%b Where:
=link_to "#{@planting.owner}'s", @planting.owner
=link_to @planting.garden, @planting.garden
- if !@planting.owner.location.blank?
- if ! @planting.owner.location.blank?
= "(#{@planting.owner.location})"
%p
%b Quantity:

View File

@@ -94,13 +94,13 @@ describe "plantings/show" do
context "location set" do
before(:each) do
@member.location = 'Greenwich, UK'
@member.save
@p.owner.location = 'Greenwich, UK'
@p.owner.save
render
end
it "shows the member's location in parentheses" do
rendered.should contain "(#{@member.location})"
rendered.should contain "(#{@p.owner.location})"
end
end
end