search for: random_cod

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

Did you mean: random_code
2011 Mar 02
6
calbacks on models
...reate(client_uri: "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/.