Remote the unused minitest suite, switch to rspec
This commit is contained in:
parent
c261876ce0
commit
ad1121ffb0
26 changed files with 58 additions and 144 deletions
7
Gemfile
7
Gemfile
|
|
@ -21,15 +21,12 @@ group :development, :test do
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
gem 'thin'
|
gem 'thin'
|
||||||
gem 'letter_opener'
|
gem 'letter_opener'
|
||||||
|
gem 'rspec-rails', '~> 3.0.0.beta'
|
||||||
|
gem 'capybara', '1.1.2'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
gem 'mysql2'
|
gem 'mysql2'
|
||||||
gem 'rspec-rails', '2.11.0'
|
|
||||||
end
|
|
||||||
|
|
||||||
group :test do
|
|
||||||
gem 'capybara', '1.1.2'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
gem 'will_paginate'
|
gem 'will_paginate'
|
||||||
|
|
|
||||||
31
Gemfile.lock
31
Gemfile.lock
|
|
@ -76,7 +76,7 @@ GEM
|
||||||
railties (>= 3.2.6, < 5)
|
railties (>= 3.2.6, < 5)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
warden (~> 1.2.3)
|
warden (~> 1.2.3)
|
||||||
diff-lcs (1.1.3)
|
diff-lcs (1.2.5)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
eventmachine (1.0.3)
|
eventmachine (1.0.3)
|
||||||
execjs (2.0.2)
|
execjs (2.0.2)
|
||||||
|
|
@ -163,19 +163,26 @@ GEM
|
||||||
rdoc (3.12.2)
|
rdoc (3.12.2)
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
ref (1.0.5)
|
ref (1.0.5)
|
||||||
rspec (2.11.0)
|
rspec-collection_matchers (0.0.3)
|
||||||
rspec-core (~> 2.11.0)
|
rspec-expectations (>= 2.99.0.beta1)
|
||||||
rspec-expectations (~> 2.11.0)
|
rspec-core (3.0.0.beta2)
|
||||||
rspec-mocks (~> 2.11.0)
|
rspec-support (= 3.0.0.beta2)
|
||||||
rspec-core (2.11.1)
|
rspec-expectations (3.0.0.beta2)
|
||||||
rspec-expectations (2.11.3)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
diff-lcs (~> 1.1.3)
|
rspec-support (= 3.0.0.beta2)
|
||||||
rspec-mocks (2.11.3)
|
rspec-mocks (3.0.0.beta2)
|
||||||
rspec-rails (2.11.0)
|
rspec-support (= 3.0.0.beta2)
|
||||||
|
rspec-rails (3.0.0.beta2)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
|
activemodel (>= 3.0)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
railties (>= 3.0)
|
railties (>= 3.0)
|
||||||
rspec (~> 2.11.0)
|
rspec-collection_matchers
|
||||||
|
rspec-core (= 3.0.0.beta2)
|
||||||
|
rspec-expectations (= 3.0.0.beta2)
|
||||||
|
rspec-mocks (= 3.0.0.beta2)
|
||||||
|
rspec-support (= 3.0.0.beta2)
|
||||||
|
rspec-support (3.0.0.beta2)
|
||||||
rubyzip (1.0.0)
|
rubyzip (1.0.0)
|
||||||
sass (3.2.14)
|
sass (3.2.14)
|
||||||
sass-rails (3.2.6)
|
sass-rails (3.2.6)
|
||||||
|
|
@ -249,7 +256,7 @@ DEPENDENCIES
|
||||||
prawn_rails
|
prawn_rails
|
||||||
pry
|
pry
|
||||||
rails (= 3.2.17)
|
rails (= 3.2.17)
|
||||||
rspec-rails (= 2.11.0)
|
rspec-rails (~> 3.0.0.beta)
|
||||||
sass-rails (>= 3.2)
|
sass-rails (>= 3.2)
|
||||||
sqlite3
|
sqlite3
|
||||||
therubyracer
|
therubyracer
|
||||||
|
|
|
||||||
37
spec/spec_helper.rb
Normal file
37
spec/spec_helper.rb
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||||
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
|
require File.expand_path("../../config/environment", __FILE__)
|
||||||
|
require 'rspec/rails'
|
||||||
|
|
||||||
|
# Requires supporting ruby files with custom matchers and macros, etc, in
|
||||||
|
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
||||||
|
# run as spec files by default. This means that files in spec/support that end
|
||||||
|
# in _spec.rb will both be required and run as specs, causing the specs to be
|
||||||
|
# run twice. It is recommended that you do not name files matching this glob to
|
||||||
|
# end with _spec.rb. You can configure this pattern with with the --pattern
|
||||||
|
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
||||||
|
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
||||||
|
|
||||||
|
RSpec.configure do |config|
|
||||||
|
# ## Mock Framework
|
||||||
|
#
|
||||||
|
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
||||||
|
#
|
||||||
|
# config.mock_with :mocha
|
||||||
|
# config.mock_with :flexmock
|
||||||
|
# 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
|
||||||
|
# examples within a transaction, remove the following line or assign false
|
||||||
|
# instead of true.
|
||||||
|
config.use_transactional_fixtures = true
|
||||||
|
|
||||||
|
# Run specs in random order to surface order dependencies. If you find an
|
||||||
|
# order dependency and want to debug it, you can fix the order by providing
|
||||||
|
# the seed, which is printed after each run.
|
||||||
|
# --seed 1234
|
||||||
|
config.order = "random"
|
||||||
|
end
|
||||||
0
test/fixtures/.gitkeep
vendored
0
test/fixtures/.gitkeep
vendored
11
test/fixtures/users.yml
vendored
11
test/fixtures/users.yml
vendored
|
|
@ -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
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::AdminControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::CallForPapersControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::ConferenceControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::PeopleControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::UsersControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::VenueControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class HomeControllerTest < ActionController::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class MailbotTest < ActionMailer::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,13 +0,0 @@
|
||||||
ENV["RAILS_ENV"] = "test"
|
|
||||||
require File.expand_path('../../config/environment', __FILE__)
|
|
||||||
require 'rails/test_help'
|
|
||||||
|
|
||||||
class ActiveSupport::TestCase
|
|
||||||
# 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,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::AdminHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::CallForPapersHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::ConferenceHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::PeopleHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::UsersHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class Admin::VenueHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class HomeHelperTest < ActionView::TestCase
|
|
||||||
end
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class UserTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue