search for: create_expir

Displaying 1 result from an estimated 1 matches for "create_expir".

2011 Mar 02
6
calbacks on models
...ri: "http://example.com") all works fine. There are no mocks around, and I can''t understand if this is a normal behavior using RSpec, if its due to Mongoid or something else. # resource.rb (model) class Resource include Mongoid::Document before_create :random_code, :create_expiration # resource_rspec.rb (testing suite) let(:resource) { Resource.create(client_uri: "http://example.com") Thanks a lot -- Posted via http://www.ruby-forum.com/.