Commit dc486e8d by source_reader

updated dependencies

parent f4f863c5
FactoryBot.define do
factory :annotation do
title { Faker::Lorem.words(3).join(' ') }
title { Faker::Lorem.words(number: 3).join(' ') }
content { Faker::Lorem.sentence }
start_time { Faker::Number.between(1000,2000) }
end_time { Faker::Number.between(3000,4000)}
start_time { Faker::Number.between(from: 1000, to: 2000) }
end_time { Faker::Number.between(from: 3000, to: 4000)}
id { Faker::Number.unique.number.to_i}
end
end
\ No newline at end of file
FactoryBot.define do
factory :data_app do
joule_id { Faker::Number.number(6).to_i}
joule_id { Faker::Number.number(digits: 6).to_i}
end
end
FactoryBot.define do
factory :data_view do
name { Faker::Lorem.words(3).join(' ') }
name { Faker::Lorem.words(number: 3).join(' ') }
description { Faker::Lorem.sentence }
visibility { "public" }
redux_json { "auto generated from factory" }
......
......@@ -3,7 +3,7 @@
# generic DbStream
FactoryBot.define do
factory :db_element do
name { Faker::Lorem.unique.words(3).join(' ') }
name { Faker::Lorem.unique.words(number: 3).join(' ') }
units { 'volts' }
sequence(:column)
default_max { 100 }
......
......@@ -5,10 +5,10 @@ FactoryBot.define do
factory :db_folder, aliases: [:root_folder] do
name { Faker::Lorem.word }
description { Faker::Lorem.sentence }
start_time { Faker::Number.number(6)}
end_time { start_time + Faker::Number.number(5) }
size_on_disk { Faker::Number.number(6) }
start_time { Faker::Number.number(digits: 6)}
end_time { start_time + Faker::Number.number(digits: 5) }
size_on_disk { Faker::Number.number(digits: 6) }
hidden { false }
path { "/root/#{Faker::Lorem.word}/#{Faker::Number.unique.number(4)}" }
path { "/root/#{Faker::Lorem.word}/#{Faker::Number.unique.number(digits: 4)}" }
end
end
......@@ -3,14 +3,14 @@
# generic DbStream
FactoryBot.define do
factory :db_stream do
name { Faker::Lorem.words(3).join(' ') }
name { Faker::Lorem.words(number: 3).join(' ') }
name_abbrev { Faker::Lorem.word }
description { Faker::Lorem.sentence }
delete_locked { false }
start_time { Faker::Number.number(6).to_i}
end_time { start_time + Faker::Number.number(5).to_i }
start_time { Faker::Number.number(digits: 6).to_i}
end_time { start_time + Faker::Number.number(digits: 5).to_i }
total_time {end_time - start_time}
size_on_disk { Faker::Number.number(6).to_i }
size_on_disk { Faker::Number.number(digits: 6).to_i }
hidden { false }
path { "/root/streams/#{Faker::Lorem.unique.word}" }
data_type { "float32_#{elements_count}" }
......
......@@ -3,9 +3,9 @@
FactoryBot.define do
factory :db do
url { "" }
max_points_per_plot { Faker::Number.number(3) }
size_db { Faker::Number.number(5) }
size_other { Faker::Number.number(5) }
max_points_per_plot { Faker::Number.number(digits: 3) }
size_db { Faker::Number.number(digits: 5) }
size_other { Faker::Number.number(digits: 5) }
size_total { size_db + size_other }
available { true }
root_folder
......
FactoryBot.define do
factory :joule_module do
name { Faker::Lorem.words(3).join(' ') }
name { Faker::Lorem.words(number: 3).join(' ') }
description { Faker::Lorem.sentence }
exec_cmd { '/path/to/cmd' }
web_interface { false }
status { 'running' }
joule_id { Faker::Number.number(3).to_i }
joule_id { Faker::Number.number(digits: 3).to_i }
end
end
......@@ -5,11 +5,11 @@ FactoryBot.define do
factory :nilm do
db
name {Faker::Lorem.unique.words(3).join(' ')}
name {Faker::Lorem.unique.words(number: 3).join(' ')}
description { Faker::Lorem.sentence }
url {Faker::Internet.unique.url}
node_type { 'nilmdb' }
key {Faker::Lorem.characters(20)}
key {Faker::Lorem.characters(number: 20)}
transient do
admins { [] }
owners { [] }
......
......@@ -3,7 +3,7 @@ FactoryBot.define do
first_name {Faker::Name.first_name}
last_name {Faker::Name.first_name}
email {Faker::Internet.unique.email}
password {Faker::Lorem.characters(10)}
password {Faker::Lorem.characters(number: 10)}
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment