Skip to content

Commit

Permalink
created to_s on Venue
Browse files Browse the repository at this point in the history
references issue #13
  • Loading branch information
emeraldvision committed Jun 17, 2015
1 parent c1015d2 commit d0d4445
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Venue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(url, type)

def to_s
#create pretty print of venue information

return "%{u} (%{t})" % {u: self.url, t: self.type}
end

def to_json
Expand Down
6 changes: 6 additions & 0 deletions spec/venue_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@
expect(@venue).to be_a Venue
end
end

describe "#to_s" do
it "creates a pretty print of venue information" do
expect(@venue.to_s).to eq "www.casalomaballroom.com (Calendar)"
end
end
end

0 comments on commit d0d4445

Please sign in to comment.