summaryrefslogtreecommitdiff
path: root/lib/customer.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-26 16:52:20 -0600
committermo khan <mo@mokhan.ca>2014-05-26 16:52:20 -0600
commitfab3dae0b354c4c4c292f300ac9bc6bf703d031c (patch)
treef24516b71134e5a2c2ccf98d1d0aba2f4fcf925a /lib/customer.rb
parent7245619df4350c63d5d858c23efbe1057933a2e4 (diff)
add integration tests.
Diffstat (limited to 'lib/customer.rb')
-rw-r--r--lib/customer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/customer.rb b/lib/customer.rb
index c2ce3b0..4515e76 100644
--- a/lib/customer.rb
+++ b/lib/customer.rb
@@ -31,7 +31,7 @@ class Customer
# add frequent renter points
frequent_renter_points += 1
# add bonus for a two day new release rental
- if element.movie.price_code == Movie.NEW_RELEASE && element.days_rented > 1
+ if element.movie.price_code == Movie::NEW_RELEASE && element.days_rented > 1
frequent_renter_points += 1
end
# show figures for this rental