A rails webapp that is used by tamu organizations to take and track member attendance.
Steps to setup Rspec and Capybara
-
In gem filed under group ':development, :test do' include: #rspec testing framework gem 'rspec-rails'
gem 'capybara', '>= 2.15' gem 'selenium-webdriver'
gem 'webdrivers'
-
run bundle install
-
You should have spec directory
-
In that directory you can add tests. Look at spec/views/login_pace_spec.rb for reference
-
to run do 'bundle exec rspec .\spec\directoryName\rspecFileName.rb'
-
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)