mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 23:21:07 -05:00
Fixed some broken tests for displaying member location
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user