thingspeak/spec/factories/windows.rb

33 lines
712 B
Ruby
Raw Normal View History

# == Schema Information
#
# Table name: windows
#
# id :integer not null, primary key
# channel_id :integer
# position :integer
# created_at :datetime
# updated_at :datetime
# html :text
# col :integer
# title :string(255)
2014-07-23 01:13:11 +02:00
# window_type :string(255)
# name :string(255)
# private_flag :boolean default(FALSE)
# show_flag :boolean default(TRUE)
2014-07-23 01:13:11 +02:00
# content_id :integer
# options :text
#
# Read about factories at http://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :window do
channel_id 1
position 1
html "<iframe ::OPTIONS::></iframe>"
col 0
2014-07-23 01:13:11 +02:00
content_id 1
end
end
2014-07-23 01:13:11 +02:00