test/units/models/test_tour_request.rb in mls-0.2.2 vs test/units/models/test_tour_request.rb in mls-0.2.3
- old
+ new
@@ -1,26 +1,31 @@
require 'test_helper'
class TestTourRequest < ::Test::Unit::TestCase
- def test_properties
- tr = MLS::TourRequest.new
+ # def test_properties
+ # tr = MLS::TourRequest.new
+ #
+ # assert tr.respond_to?(:message)
+ # end
+ #
+ # def test_attr_accessors
+ # tr = MLS::TourRequest.new
+ #
+ # assert tr.respond_to?(:listing)
+ # end
+ #
+ # def test_class_methods
+ # assert MLS::TourRequest.respond_to?(:get_all_for_account)
+ # assert MLS::TourRequest.respond_to?(:create)
+ # end
+ #
+ # def test_parser
+ # assert defined?(MLS::TourRequest::Parser)
+ # end
- assert tr.respond_to?(:message)
+ test 'it' do
+ @account = FactoryGirl.create(:account)
+ @listing = FactoryGirl.create(:listing)
end
-
- def test_attr_accessors
- tr = MLS::TourRequest.new
-
- assert tr.respond_to?(:listing)
- end
-
- def test_class_methods
- assert MLS::TourRequest.respond_to?(:get_all_for_account)
- assert MLS::TourRequest.respond_to?(:create)
- end
-
- def test_parser
- assert defined?(MLS::TourRequest::Parser)
- end
-
+
end