Merge branch 'master' of https://github.com/OWASP/railsgoat
This commit is contained in:
@@ -24,9 +24,6 @@ RSpec.configure do |config|
|
|||||||
# config.mock_with :flexmock
|
# config.mock_with :flexmock
|
||||||
# config.mock_with :rr
|
# config.mock_with :rr
|
||||||
|
|
||||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
||||||
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
||||||
|
|
||||||
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
||||||
# examples within a transaction, remove the following line or assign false
|
# examples within a transaction, remove the following line or assign false
|
||||||
# instead of true.
|
# instead of true.
|
||||||
|
|||||||
Vendored
Vendored
-11
@@ -1,11 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.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
|
|
||||||
Vendored
-15
@@ -1,15 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
one:
|
|
||||||
user_id: 1
|
|
||||||
sick_days_taken: 1
|
|
||||||
sick_days_earned: 1
|
|
||||||
pto_taken: 1
|
|
||||||
pto_earned: 1
|
|
||||||
|
|
||||||
two:
|
|
||||||
user_id: 1
|
|
||||||
sick_days_taken: 1
|
|
||||||
sick_days_earned: 1
|
|
||||||
pto_taken: 1
|
|
||||||
pto_earned: 1
|
|
||||||
Vendored
-15
@@ -1,15 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
one:
|
|
||||||
user_id: 1
|
|
||||||
date_submitted: 2013-05-31
|
|
||||||
score: 1
|
|
||||||
comments: MyString
|
|
||||||
reviewer: 1
|
|
||||||
|
|
||||||
two:
|
|
||||||
user_id: 1
|
|
||||||
date_submitted: 2013-05-31
|
|
||||||
score: 1
|
|
||||||
comments: MyString
|
|
||||||
reviewer: 1
|
|
||||||
Vendored
-13
@@ -1,13 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
one:
|
|
||||||
total: MyString
|
|
||||||
employee_contrib: MyString
|
|
||||||
employer_contrib: MyString
|
|
||||||
user_id: MyString
|
|
||||||
|
|
||||||
two:
|
|
||||||
total: MyString
|
|
||||||
employee_contrib: MyString
|
|
||||||
employer_contrib: MyString
|
|
||||||
user_id: MyString
|
|
||||||
Vendored
-17
@@ -1,17 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
one:
|
|
||||||
event_type: MyString
|
|
||||||
date_begin: 2013-05-27
|
|
||||||
date_end: 2013-05-27
|
|
||||||
event_name: MyString
|
|
||||||
event_desc: MyString
|
|
||||||
user_id: 1
|
|
||||||
|
|
||||||
two:
|
|
||||||
event_type: MyString
|
|
||||||
date_begin: 2013-05-27
|
|
||||||
date_end: 2013-05-27
|
|
||||||
event_name: MyString
|
|
||||||
event_desc: MyString
|
|
||||||
user_id: 1
|
|
||||||
Vendored
-9
@@ -1,9 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
one:
|
|
||||||
email: MyString
|
|
||||||
password: MyString
|
|
||||||
|
|
||||||
two:
|
|
||||||
email: MyString
|
|
||||||
password: MyString
|
|
||||||
Vendored
-17
@@ -1,17 +0,0 @@
|
|||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
one:
|
|
||||||
user_id: 1
|
|
||||||
income: MyString
|
|
||||||
bonuses: MyString
|
|
||||||
years_worked: 1
|
|
||||||
SSN: MyString
|
|
||||||
DoB: 2013-05-31
|
|
||||||
|
|
||||||
two:
|
|
||||||
user_id: 1
|
|
||||||
income: MyString
|
|
||||||
bonuses: MyString
|
|
||||||
years_worked: 1
|
|
||||||
SSN: MyString
|
|
||||||
DoB: 2013-05-31
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class AdminControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class BenefitFormsControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class DashboardControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PaidTimeOffControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PerformanceControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class RetirementControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class ScheduleControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class SessionsControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class TutorialsControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class UsersControllerTest < ActionController::TestCase
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class WorkInfoControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
require 'rails/performance_test_help'
|
|
||||||
|
|
||||||
class BrowsingTest < ActionDispatch::PerformanceTest
|
|
||||||
# Refer to the documentation for all available options
|
|
||||||
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
|
||||||
# :output => 'tmp/performance', :formats => [:flat] }
|
|
||||||
|
|
||||||
def test_homepage
|
|
||||||
get '/'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
ENV["RAILS_ENV"] ||= "test"
|
|
||||||
|
|
||||||
# To use simplecov, do this: COVERAGE=true rake
|
|
||||||
require 'simplecov'
|
|
||||||
SimpleCov.start if ENV["COVERAGE"]
|
|
||||||
|
|
||||||
require File.expand_path('../../config/environment', __FILE__)
|
|
||||||
require 'rails/test_help'
|
|
||||||
|
|
||||||
class ActiveSupport::TestCase
|
|
||||||
# Maybe for Rails 4.0: ActiveRecord::Migration.check_pending!
|
|
||||||
|
|
||||||
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
|
||||||
#
|
|
||||||
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
|
||||||
# -- they do not yet inherit this setting
|
|
||||||
fixtures :all
|
|
||||||
|
|
||||||
# Add more helper methods to be used by all tests here...
|
|
||||||
end
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class AdminHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class BenefitFormsHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class DashboardHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PaidTimeOffHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PerformanceHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class RetirementHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class ScheduleHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class SessionsHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class TutorialsHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class UsersHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class WorkInfoHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PaidTimeOffTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PerformanceTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class RetirementTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class ScheduleTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class UserTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class WorkInfoTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user