Main Avalanche Network server application. Built with Ruby on Rails.

factories.rb 1.8KB

    require 'factory_girl' FactoryGirl.define do factory :user, aliases: [:author] do |f| f.first_name "John" f.last_name "Doe" f.email "johndoe@website.com" f.password "12345678" f.language "en" f.admin false end factory :admin, class: User do first_name "admin" email "admin@website.com" password "12345678" language "en" admin true end factory :blog_post do |f| f.title "foo" f.slug "foo" f.content "foobar" f.published true f.description "foobar is cool" end factory :info do website_name 'Avalanche' tagline 'A Ruby on Rails app template' default_language 'en' contact_email 'contact@avalanche.network' server_email 'no-reply@avalanche.network' website_link 'http://localhost:3000' end factory :subscription do |f| f.first_name "foo" f.last_name "bar" f.email "foobar@website.com" end factory :mission do |f| f.title "Test #1505" f.objective "Test the avalanche network system for possible error." f.briefing "Iterate thru all tests to check the system for possible errors or bugs." end factory :mission_agent do |f| f.role "Mr. White" f.objective "Complete this mission" f.briefing "Just do everything marked in here." f.description "" end factory :agent_step do |f| f.step 1 f.title "Do this" f.description "Do this thing like this." f.completed false end factory :step_validation do |f| f.validation_type "ValidationText" f.description "Do this thing like this." end factory :reward do |f| f.title "Cool Reward" f.description "Awesome reward description" f.img "aliens_meme.jpg" end end