spec/models/checkout_spec.rb in enju_circulation-0.2.5 vs spec/models/checkout_spec.rb in enju_circulation-0.3.0.beta.1
- old
+ new
@@ -1,9 +1,9 @@
require 'rails_helper'
describe Checkout do
- #pending "add some examples to (or delete) #{__FILE__}"
+ # pending "add some examples to (or delete) #{__FILE__}"
fixtures :all
it "should respond to renewable?" do
checkouts(:checkout_00001).save
checkouts(:checkout_00001).errors[:base].should eq []
@@ -26,10 +26,10 @@
end
it "should get new due_date" do
old_due_date = checkouts(:checkout_00001).due_date
new_due_date = checkouts(:checkout_00001).get_new_due_date
- new_due_date.should eq Time.zone.now.advance(:days => UserGroupHasCheckoutType.find(3).checkout_period).beginning_of_day
+ new_due_date.should eq Time.zone.now.advance(days: UserGroupHasCheckoutType.find(3).checkout_period).beginning_of_day
end
it "should respond to not_returned" do
Checkout.not_returned.size.should > 0
end