You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following warning when using associations:
DEPRECATION WARNING: Object#returning has been deprecated in favor of Object#tap. (called from block (2 levels) in <top (required)> at ~/SP/spec/spec_helper.rb:73)
The relevant line of code is...
Survey.blueprint do user name { Faker::Lorem.words(3).join(" ") } intro { Faker::Lorem.paragraph } pubid { 7.times.map { ('a'..'z').to_a.sample }.join } pubdate { 1.days.ago } enddate { 7.days.from_now } end
I think this has to do with the faker gem, I can't find returning in the machinist code anywhere, while faker has 3 instances of it. Relevant file is lib/faker/lorem.rb lines 15 and 27.
To bad the faker gem is not on GitHub as far as I know.
I get the following warning when using associations:
DEPRECATION WARNING: Object#returning has been deprecated in favor of Object#tap. (called from block (2 levels) in <top (required)> at ~/SP/spec/spec_helper.rb:73)
The relevant line of code is...
Survey.blueprint do user name { Faker::Lorem.words(3).join(" ") } intro { Faker::Lorem.paragraph } pubid { 7.times.map { ('a'..'z').to_a.sample }.join } pubdate { 1.days.ago } enddate { 7.days.from_now } end
which is called in the test...
it 'should have surveys' do @u.surveys.make end
where @U is a user object.
I'm using ruby version 1.9.2p0, Rails 3, and Machinist 2.0.0.beta2 managed by RVM.
The text was updated successfully, but these errors were encountered: