thingspeak/spec/factories/feed.rb

13 lines
261 B
Ruby
Raw Permalink Normal View History

FactoryGirl.define do
factory :feed do
field1 "foo"
field2 "10"
entry_id 1
latitude "51.477222"
longitude "0.0"
created_at (Time.now - 20.minutes)
updated_at (Time.now - 20.minutes)
sequence(:status) {|n| "foo#{n}" }
end
end