spec/support/contact.rb in highrise_mapper-0.0.2 vs spec/support/contact.rb in highrise_mapper-0.0.3
- old
+ new
@@ -1,6 +1,7 @@
class Contact
+ extend RSpec::Mocks
def name
'Albert'
end
def last_name
@@ -14,10 +15,14 @@
def email
'albert.einstein@princeton.edu'
end
def highrise_context
- SaasCustomer.new
+ @saas_customer = SaasCustomer.new
+ @saas_customer.stub(highrise_base_url: 'Rails on the beach' )
+ @saas_customer.stub(highrise_base_url: ENV['HIGHRISE_BASE_URL'] )
+ @saas_customer.stub(highrise_token: ENV['HIGHRISE_TOKEN'] )
+ return @saas_customer
end
def highrise_id
112233
end
\ No newline at end of file