Skip to content

Commit

Permalink
Finish renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
darrennix committed Jul 19, 2013
1 parent 4291ede commit 8053101
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/mls/models/listing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ def space_name
# #!ruby
# listing = MLS::Listing.find(@id)
# info => {:company => 'name', :population => 10, :funding => 'string', :move_id => '2012-09-12'}
# listing.request_contact('name', 'email@address.com', info) # => #<MLS::Tour>
# listing.request_contact('name', 'email@address.com', info) # => #<MLS::Contact>
#
# listing.request_contact('', 'emai', info) # => #<MLS::Tour> will have errors on account
# listing.request_contact('', 'emai', info) # => #<MLS::Contact> will have errors on account
def request_contact(account, contact={})
MLS::Tour.create(id, account, contact)
MLS::Contact.create(id, account, contact)
end


Expand Down
2 changes: 1 addition & 1 deletion test/factories/contact.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryGirl.define do
factory :contact, :class => MLS::Tour do
factory :contact, :class => MLS::Contact do
message { Faker::Lorem.paragraph }
company { Faker::Company.email }
population { Kernel.rand(2..200) }
Expand Down
12 changes: 6 additions & 6 deletions test/units/models/test_contact.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
require 'test_helper'

class TestTour < ::Test::Unit::TestCase
class TestContact < ::Test::Unit::TestCase

# def test_properties
# tr = MLS::Tour.new
# tr = MLS::Contact.new
#
# assert tr.respond_to?(:message)
# end
#
# def test_attr_accessors
# tr = MLS::Tour.new
# tr = MLS::Contact.new
#
# assert tr.respond_to?(:listing)
# end
#
# def test_class_methods
# assert MLS::Tour.respond_to?(:get_all_for_account)
# assert MLS::Tour.respond_to?(:create)
# assert MLS::Contact.respond_to?(:get_all_for_account)
# assert MLS::Contact.respond_to?(:create)
# end
#
# def test_parser
# assert defined?(MLS::Tour::Parser)
# assert defined?(MLS::Contact::Parser)
# end

test 'it' do
Expand Down

0 comments on commit 8053101

Please sign in to comment.