-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved files outside of tracker folder
- Loading branch information
Nikolai Thompson
committed
Oct 27, 2020
1 parent
4a1c9f0
commit 91d82dd
Showing
178 changed files
with
25,996 additions
and
30,918 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,21 @@ | |
A rails webapp that is used by tamu organizations to take and track member attendance. | ||
|
||
Steps to setup Rspec and Capybara | ||
1. In gem filed under group ':development, :test do' include: | ||
#rspec testing framework | ||
gem 'rspec-rails' | ||
1. In gem filed under group ':development, :test do' include these 4 gems | ||
|
||
a. gem 'rspec-rails' | ||
|
||
# Adds support for Capybara system testing and selenium driver | ||
gem 'capybara', '>= 2.15' | ||
gem 'selenium-webdriver' | ||
# Easy installation and use of web drivers to run system tests with browsers | ||
gem 'webdrivers' | ||
2. run bundle install | ||
b. gem 'capybara', '>= 2.15' | ||
|
||
c. gem 'selenium-webdriver' | ||
|
||
d. gem 'webdrivers' | ||
|
||
2. run bundle install | ||
3. You should have spec directory | ||
4. In that directory you can add tests. Look at spec/views/login_pace_spec.rb for reference | ||
5. to run do 'bundle exec rspec .\spec\directoryName\rspecFileName.rb' | ||
# example: bundle exec rspec .\spec\views\login_page_spec.rb | ||
# not sure why we need 'bundle exec' might have to fix this later | ||
6. Before compiling the spec files, making use you have: | ||
1) Create a new officer account with email => "[email protected]" and password => "password". | ||
2) An empty Members table in your local database. | ||
3) Then create a new user with name => "John Doe" and uin => "123456" (Put whatever you want for email and leave points as 0 by default) | ||
'#' example: bundle exec rspec .\spec\views\login_page_spec.rb | ||
'#' not sure why we need 'bundle exec' might have to fix this later | ||
|
||
reference this page for more info: https://www.codewithjason.com/rails-testing-hello-world-using-rspec-capybara/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# 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_10_22_221752) do | ||
|
||
# These are extensions that must be enabled in order to support this database | ||
enable_extension "plpgsql" | ||
|
||
create_table "attendance_entries", force: :cascade do |t| | ||
t.integer "uin" | ||
t.integer "eventId" | ||
t.datetime "created_at", null: false | ||
t.datetime "updated_at", null: false | ||
end | ||
|
||
create_table "events", force: :cascade do |t| | ||
t.string "name" | ||
t.string "description" | ||
t.integer "pointsWorth" | ||
t.datetime "created_at", null: false | ||
t.datetime "updated_at", null: false | ||
end | ||
|
||
create_table "members", force: :cascade do |t| | ||
t.string "name" | ||
t.string "email" | ||
t.integer "uin" | ||
t.integer "points" | ||
t.datetime "created_at", null: false | ||
t.datetime "updated_at", null: false | ||
end | ||
|
||
create_table "officers", force: :cascade do |t| | ||
t.string "name" | ||
t.string "email" | ||
t.string "position" | ||
t.integer "uin" | ||
t.integer "points" | ||
t.string "password_digest" | ||
t.datetime "created_at", null: false | ||
t.datetime "updated_at", null: false | ||
end | ||
|
||
create_table "point_entries", force: :cascade do |t| | ||
t.integer "uin" | ||
t.string "comment" | ||
t.integer "officerId" | ||
t.datetime "created_at", null: false | ||
t.datetime "updated_at", null: false | ||
t.integer "points_add" | ||
t.integer "points_remove" | ||
t.string "name" | ||
end | ||
|
||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.