Commit 09796600 by thanhnd

crawl data with rake

parent d3f43332
Pipeline #458 failed with stages
in 0 seconds
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
about
action_mailbox:ingress:exim
action_mailbox:ingress:postfix
action_mailbox:ingress:qmail
action_mailbox:install
action_text:install
active_storage:install
app:template
app:update
assets:clean[keep]
assets:clobber
assets:environment
assets:precompile
cache_digests:dependencies
cache_digests:nested_dependencies
db:create
db:drop
db:environment:set
db:fixtures:load
db:migrate
db:migrate:status
db:prepare
db:rollback
db:schema:cache:clear
db:schema:cache:dump
db:schema:dump
db:schema:load
db:seed
db:seed:replant
db:setup
db:structure:dump
db:structure:load
db:version
log:clear
middleware
restart
secret
stats
test
test:db
test:system
time:zones[country_or_offset]
tmp:clear
tmp:create
webpacker
webpacker:binstubs
webpacker:check_binstubs
webpacker:check_node
webpacker:check_yarn
webpacker:clean[keep]
webpacker:clobber
webpacker:compile
webpacker:info
webpacker:install
webpacker:install:angular
webpacker:install:coffee
webpacker:install:elm
webpacker:install:erb
webpacker:install:react
webpacker:install:stimulus
webpacker:install:svelte
webpacker:install:typescript
webpacker:install:vue
webpacker:verify_install
webpacker:yarn_install
yarn:install
zeitwerk:check
File mode changed from 100644 to 100755
......@@ -52,3 +52,5 @@ end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
#mysql2
gem 'mysql2'
......@@ -62,8 +62,8 @@ GEM
bootsnap (1.4.5)
msgpack (~> 1.0)
builder (3.2.4)
byebug (11.1.0)
capybara (3.30.0)
byebug (11.1.1)
capybara (3.31.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
......@@ -72,16 +72,16 @@ GEM
regexp_parser (~> 1.5)
xpath (~> 3.2)
childprocess (3.0.0)
concurrent-ruby (1.1.5)
concurrent-ruby (1.1.6)
crass (1.0.6)
erubi (1.9.0)
ffi (1.12.1)
ffi (1.12.2)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
jbuilder (2.9.1)
activesupport (>= 4.2.0)
jbuilder (2.10.0)
activesupport (>= 5.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
......@@ -94,18 +94,19 @@ GEM
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (0.9.2)
mimemagic (0.3.3)
mimemagic (0.3.4)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.0)
msgpack (1.3.1)
msgpack (1.3.3)
mysql2 (0.5.3)
nio4r (2.5.2)
nokogiri (1.10.7)
nokogiri (1.10.8)
mini_portile2 (~> 2.4.0)
public_suffix (4.0.3)
puma (4.3.1)
nio4r (~> 2.0)
rack (2.1.1)
rack (2.2.2)
rack-proxy (0.6.5)
rack
rack-test (1.1.0)
......@@ -142,7 +143,7 @@ GEM
ffi (~> 1.0)
regexp_parser (1.6.0)
ruby_dep (1.5.0)
rubyzip (2.0.0)
rubyzip (2.2.0)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
sassc (2.2.1)
......@@ -205,6 +206,7 @@ DEPENDENCIES
capybara (>= 2.15)
jbuilder (~> 2.7)
listen (>= 3.0.5, < 3.2)
mysql2
puma (~> 4.1)
rails (~> 6.0.2, >= 6.0.2.1)
sass-rails (>= 6)
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
class AppliedJob < ApplicationRecord
belongs_to :job
belongs_to :user
#add_index :applied_jobs, :applied_job_id, unique: true
end
class Area < ApplicationRecord
has_many :cities
has_many :jobs
validates_presence_of :area_name
end
class City < ApplicationRecord
belongs_to :area
has_many :jobs
#add_index :cities, [:area_id, :city_id], unique: true
validates_presence_of :city_name
end
class Company < ApplicationRecord
has_many :jobs
#add_index :companies, [:company_id, :email], unique: true
validates_presence_of :company_name
end
File mode changed from 100644 to 100755
class Industry < ApplicationRecord
has_many :industry_jobs
#add_index :industries, :industries_id, unique: true
validates_presence_of :industry_name
end
class IndustryJob < ApplicationRecord
belongs_to :industry
has_many :jobs
#add_index :industry_jobs, :industry_job_id, unique: true
end
class Job < ApplicationRecord
has_many :industry_jobs
has_many :saved_jobs
has_many :applied_jobs
has_and_belongs_to_many :users
belongs_to :area
belongs_to :city
belongs_to :company
#add_index :jobs, [:job_id, :area_id, :city_id, :industry_id, :company_id, :code], unique: true
#validates_presence_of :code
validates_presence_of :job_name
end
class SavedJob < ApplicationRecord
belongs_to :job
belongs_to :user
#add_index :saved_jobs, :saved_job_id, unique: true
end
class User < ApplicationRecord
has_many :applied_jobs
has_and_belongs_to_many :jobs
#add_index :companies, [:user_id, :email], unique: true
validates_presence_of :fname
validates_presence_of :lname
end
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -4,22 +4,57 @@
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
#default: &default
# adapter: sqlite3
# pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
# timeout: 5000
development:
<<: *default
database: db/development.sqlite3
#development:
# <<: *default
# database: db/development.sqlite3
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db/test.sqlite3
#test:
# <<: *default
# database: db/test.sqlite3
#production:
# <<: *default
# database: db/production.sqlite3
default: &default
adapter: mysql2
encoding: unicode
development:
adapter: mysql2
host: localhost
database: venjob
username: zigexn
password: 123
host: localhost
# socket: /var/lib/mysql/mysql.sock
encoding: utf8
pool: 5
production:
<<: *default
database: db/production.sqlite3
adapter: mysql2
host: localhost
database: venjob
username: zigexn
password: 123
host: localhost
socket: /tmp/mysql.sock
encoding: utf8
staging:
adapter: mysql2
host: localhost
database: venjob
username: zigexn
password: 123
host: localhost
socket: /tmp/mysql.sock
encoding: utf8
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
class CreateAreas < ActiveRecord::Migration[6.0]
def change
create_table :areas do |t|
t.string :area_name
t.string :area_description
t.timestamps
end
add_index :areas, :id, unique: true
end
end
class CreateCities < ActiveRecord::Migration[6.0]
def change
create_table :cities do |t|
t.column :area_id, :int
t.column :city_name, :string
t.column :city_description, :string
t.timestamps
end
add_index :cities, [:area_id, :id], unique: true
end
end
class CreateCompanies < ActiveRecord::Migration[6.0]
def change
create_table :companies do |t|
t.column :company_name, :string
t.column :company_description, :text
t.column :address, :string
t.column :phone_number, :string
t.column :website, :string
t.column :email, :string
t.column :size, :int
t.timestamps
end
add_index :companies, [:id, :email], unique: true
end
end
class CreateIndustries < ActiveRecord::Migration[6.0]
def change
create_table :industries do |t|
t.column :industry_name, :text, :null => false
t.column :industry_description, :string
t.timestamps
end
add_index :industries, :id, unique: true
end
end
class CreateIndustryJobs < ActiveRecord::Migration[6.0]
def change
create_table :industry_jobs do |t|
t.column :industry_id, :int, :null => false
t.column :job_id, :int, :null => false
t.timestamps
end
add_index :industry_jobs, :id, unique: true
end
end
class CreateJobs < ActiveRecord::Migration[6.0]
def change
create_table :jobs do |t|
t.column :area_id, :int, :null => false
t.column :city_id, :int, :null => false
t.column :industry_id, :int, :null => false
t.column :company_id, :int, :null => false
t.column :code, :string, :null => false
t.column :job_name, :text, :null => false
t.column :salary, :string
t.column :deadline, :Date
#t.column :position, :string
t.column :level, :string
t.column :experience, :string
t.column :last_updated, :Date
t.column :description, :text
t.timestamps
end
#add_index :jobs, [:id, :area_id, :city_id, :industry_id, :company_id, :code], unique: true
end
end
class CreateUsers < ActiveRecord::Migration[6.0]
def change
create_table :users do |t|
t.column :email, :string, :null => false
t.column :fname, :string, :null => false
t.column :lname, :string, :null => false
t.column :role, :int, :null => false
t.column :remember_digest, :string
t.column :activation_digest, :string
t.column :activated, :Boolean
t.column :activated_at, :timestamp
t.column :reset_digest, :string
t.column :reset_sent_at, :timestamp
t.column :password_digest, :string
t.timestamps
end
#add_index :companies, [:id, :email], unique: true
#remove_index :companies, [:id, :email], unique: true
end
end
class CreateSavedJobs < ActiveRecord::Migration[6.0]
def change
create_table :saved_jobs do |t|
t.column :user_id, :int, :null => false
t.column :job_id, :int, :null => false
t.timestamps
end
add_index :saved_jobs, :id, unique: true
end
end
class CreateAppliedJobs < ActiveRecord::Migration[6.0]
def change
create_table :applied_jobs do |t|
t.column :user_id, :int, :null => false
t.column :job_id, :int, :null => false
t.timestamps
end
add_index :applied_jobs, :id, unique: true
end
end
class RemoveColumnCodeJobtable < ActiveRecord::Migration[6.0]
def change
remove_column :jobs, :code
end
end
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `rails
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_02_11_083438) do
create_table "applied_jobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.integer "user_id", null: false
t.integer "job_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["id"], name: "index_applied_jobs_on_id", unique: true
end
create_table "areas", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.string "area_name"
t.string "area_description"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["id"], name: "index_areas_on_id", unique: true
end
create_table "cities", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.integer "area_id"
t.string "city_name"
t.string "city_description"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["area_id", "id"], name: "index_cities_on_area_id_and_id", unique: true
end
create_table "companies", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.string "company_name"
t.text "company_description"
t.string "address"
t.string "phone_number"
t.string "website"
t.string "email"
t.integer "size"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["id", "email"], name: "index_companies_on_id_and_email", unique: true
end
create_table "industries", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.text "industry_name", null: false
t.string "industry_description"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["id"], name: "index_industries_on_id", unique: true
end
create_table "industry_jobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.integer "industry_id", null: false
t.integer "job_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["id"], name: "index_industry_jobs_on_id", unique: true
end
create_table "jobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.integer "area_id", null: false
t.integer "city_id", null: false
t.integer "industry_id", null: false
t.integer "company_id", null: false
t.text "job_name", null: false
t.string "salary"
t.date "deadline"
t.string "level"
t.string "experience"
t.date "last_updated"
t.text "description"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
end
create_table "saved_jobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.integer "user_id", null: false
t.integer "job_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["id"], name: "index_saved_jobs_on_id", unique: true
end
create_table "users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.string "email", null: false
t.string "fname", null: false
t.string "lname", null: false
t.integer "role", null: false
t.string "remember_digest"
t.string "activation_digest"
t.boolean "activated"
t.timestamp "activated_at"
t.string "reset_digest"
t.timestamp "reset_sent_at"
t.string "password_digest"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
end
end
File mode changed from 100644 to 100755
def insert_area
Area,create(name: 'aadd', description: 'adfad')
end
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
require 'addressable/uri'
require 'uri'
namespace :crawler do
desc "TODO"
task run: :environment do
end
task crawl: :environment do
#insert_data_area
crawl_data
end
def crawl_data
data_dir ="/opt/careerbuilder"
Dir.mkdir(data_dir) unless File.exists?(data_dir)
base_careerbuilder_url = "https://careerbuilder.vn"
list_url = "#{base_careerbuilder_url}/viec-lam/tat-ca-viec-lam-vi.html"
#HEADERS_HASH = {"User-Agent" => "Ruby/#{RUBY_VERSION}"}
#page = Nokogiri::HTML(open(list_url))
#get all links in one page
#links = page.css('html body.jobseeker_site.A-Bootstrap div#uni_wrapper div#uni_container div.cb-container div.col-sm-12.col-md-9.col-ListJobCate div.gird_standard dl dd.brief span.jobtitle h3.job a')
#print all links:
#links.each{|link| puts "#{link['href']}\n"}
#get link for next page
#np = Nokogiri::HTML(open(list_url))
#nextpage = np.css('html body.jobseeker_site.A-Bootstrap div#uni_wrapper div#uni_container div.cb-container div.col-sm-12.col-md-9.col-ListJobCate div.paginationTwoStatus a.right')
#list_url = nextpage[0]["href"]
while list_url.to_s.length > 0
page = Nokogiri::HTML(open(list_url))
#get link for next page
np = Nokogiri::HTML(open(list_url))
nextpage = np.css('html body.jobseeker_site.A-Bootstrap div#uni_wrapper div#uni_container div.cb-container div.col-sm-12.col-md-9.col-ListJobCate div.paginationTwoStatus a.right')
puts nextpage[0]["href"]
#get all links in one page
links = page.css('html body.jobseeker_site.A-Bootstrap div#uni_wrapper div#uni_container div.cb-container div.col-sm-12.col-md-9.col-ListJobCate div.gird_standard dl dd.brief span.jobtitle h3.job a')
area = Area.find(1)
links.each do |link|
#convert utf-8 to ascii character if has
#url = "https://careerbuilder.vn/vi/tim-viec-lam/hr-executive-%E2%80%93-field-sales.35B39958.html"
#uri = Addressable::URI.parse(url)
url = "#{link['href']}"
url.force_encoding('ASCII-8BIT')
uri = URI::encode(url)
job = Nokogiri::HTML(open(uri))
title = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div.top-job div.top-job-info h1')
company_name = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div.top-job div.top-job-info div.tit_company')
updated_date = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div.datepost span')
location = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div#showScroll.box2Detail ul.DetailJobNew li[1].bgLine1 p[1].fl_left b a[2]')
experience = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div#showScroll.box2Detail ul.DetailJobNew li[2].bgLine2 p[1].fl_left > text()')
industry = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div#showScroll.box2Detail ul.DetailJobNew li[3].bgLine1 p[1].fl_left b')
level = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div#showScroll.box2Detail ul.DetailJobNew li.bgLine1 p.fl_right label')
salary = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div#showScroll.box2Detail ul.DetailJobNew li.bgLine2 p.fl_right label')
deadline = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div#showScroll.box2Detail ul.DetailJobNew li[3].bgLine1 p[2].fl_right > text()')
description = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div.MarBot20')
address = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div.box1Detail p.TitleDetailNew label label')
company_intro = job.css('html body.jobseeker_site.jobdetail-standard div#uni_wrapper div#uni_container div.MyJobDetail div.MyJobLeft div.LeftJobCB div.desc_company.content_fck span#emp_more')
#skip if field blank
next if industry.text.blank?
#insert data to City table:
City.find_or_create_by(area_id: area.id, city_name: "#{location.text.gsub!(",", "")}", city_description: "")
#insert data to Industry table
Industry.find_or_create_by(industry_name: "#{industry.text}", industry_description: "")
#insert data to Companies table
Company.find_or_create_by(company_name: "#{company_name.text}", company_description: "#{company_intro.text}", address: "#{address.text}" )
#insert data to Jobs table
city = City.find_or_create_by(area_id: area.id, city_name: "#{location.text}")
industryid = Industry.find_or_create_by(industry_name: "#{industry.text}")
companyid = Company.find_or_create_by(company_name: "#{company_name.text}")
Job.find_or_create_by(area_id: area.id, city_id: city.id, industry_id: industryid.id, company_id: companyid.id, job_name: "#{title.text}", salary: "#{salary.text}", deadline: "#{deadline.text}", level: "#{level.text}", experience: "#{experience.text.strip}", last_updated: "#{updated_date.text.strip}", description: "description.text")
list_url = nextpage[0]["href"]
end
end
end
def insert_data_area
Area.find_or_create_by(area_name: "Viet Nam", area_description: "VN")
Area.find_or_create_by(area_name: "Nuoc Ngoai", area_description: "NN")
end
end
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
File mode changed from 100644 to 100755
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
require 'test_helper'
class AppliedJobTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class AreaTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class CityTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class CompanyTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class IndustryJobTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class IndustryTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class JobTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class SavedJobTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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 to comment