Permalink
Browse files

Finish renaming

  • Loading branch information...
darrennix committed Jul 19, 2013
1 parent 4291ede commit 80531012ff7349a62137c91d258778143594c7f3
Showing with 10 additions and 10 deletions.
  1. +3 −3 lib/mls/models/listing.rb
  2. +1 −1 test/factories/contact.rb
  3. +6 −6 test/units/models/test_contact.rb
@@ -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
@@ -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) }
@@ -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

0 comments on commit 8053101

Please sign in to comment.