Skip to content

Commit

Permalink
moved files outside of tracker folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Thompson committed Oct 27, 2020
1 parent 4a1c9f0 commit 91d82dd
Show file tree
Hide file tree
Showing 178 changed files with 25,996 additions and 30,918 deletions.
Binary file modified .DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

101 changes: 0 additions & 101 deletions .idea/MemberPointTracker.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tracker/Gemfile → Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.6'
ruby '2.7.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.3'
Expand Down
File renamed without changes.
29 changes: 14 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
64 changes: 64 additions & 0 deletions db/schema.rb
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.
Loading

0 comments on commit 91d82dd

Please sign in to comment.