spec/datasets/home_page_dataset.rb in radiant-1.0.0.rc3 vs spec/datasets/home_page_dataset.rb in radiant-1.0.0.rc4
- old
+ new
@@ -51,11 +51,11 @@
:page_id => @current_page_id
}.update(attributes)
end
private
- @@unique_page_title_call_count = 0
def unique_page_title
+ @@unique_page_title_call_count ||= 0
@@unique_page_title_call_count += 1
"Page #{@@unique_page_title_call_count}"
end
end
end
\ No newline at end of file