addcrawlobjects
This commit is contained in:
20
spec/factories/crawlobjects.rb
Normal file
20
spec/factories/crawlobjects.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
FactoryGirl.define do
|
||||
factory :crawlobject do
|
||||
name "MyString"
|
||||
text "MyText"
|
||||
raw "MyText"
|
||||
type 1
|
||||
schematype "MyString"
|
||||
crawlurl "MyString"
|
||||
url ""
|
||||
crawltime "2015-03-30 21:10:29"
|
||||
published_at "2015-03-30 21:10:29"
|
||||
referenced ""
|
||||
parent_id 1
|
||||
lft 1
|
||||
rgt 1
|
||||
depth 1
|
||||
children_count 1
|
||||
end
|
||||
|
||||
end
|
||||
5
spec/models/crawlobject_spec.rb
Normal file
5
spec/models/crawlobject_spec.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Crawlobject, :type => :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
Reference in New Issue
Block a user