mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Add rspec and remove test dir.
This commit is contained in:
parent
31fc2211f8
commit
25dbb83475
8
Gemfile
8
Gemfile
@ -43,6 +43,14 @@ group :development do
|
||||
gem 'yaml_db'
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem 'factory_girl_rails'
|
||||
gem 'shoulda-matchers'
|
||||
gem 'poltergeist', git: 'git://github.com/jonleighton/poltergeist.git'
|
||||
gem 'fivemat'
|
||||
gem 'capybara-screenshot'
|
||||
end
|
||||
|
||||
gem "newrelic_rpm"
|
||||
|
||||
gem 'sass-rails', "~> 3.2.0"
|
||||
|
||||
36
Gemfile.lock
36
Gemfile.lock
@ -1,3 +1,12 @@
|
||||
GIT
|
||||
remote: git://github.com/jonleighton/poltergeist.git
|
||||
revision: 7dee7758a03d4636c2a74b04a8b7bf8495319217
|
||||
specs:
|
||||
poltergeist (1.3.0)
|
||||
capybara (~> 2.1.0)
|
||||
faye-websocket (>= 0.4.4, < 0.5.0)
|
||||
http_parser.rb (~> 0.5.3)
|
||||
|
||||
GIT
|
||||
remote: git://github.com/rails/exception_notification
|
||||
revision: 192a49a02d63d28b23ed41cebadfedd490929cf1
|
||||
@ -58,6 +67,14 @@ GEM
|
||||
binding_of_caller (0.6.9)
|
||||
debug_inspector (>= 0.0.1)
|
||||
builder (3.0.4)
|
||||
capybara (2.1.0)
|
||||
mime-types (>= 1.16)
|
||||
nokogiri (>= 1.3.3)
|
||||
rack (>= 1.0.0)
|
||||
rack-test (>= 0.5.4)
|
||||
xpath (~> 2.0)
|
||||
capybara-screenshot (0.3.6)
|
||||
capybara (>= 1.0, < 3)
|
||||
cocaine (0.4.2)
|
||||
coderay (1.0.8)
|
||||
coffee-rails (3.2.2)
|
||||
@ -74,14 +91,24 @@ GEM
|
||||
railties (~> 3.1)
|
||||
warden (~> 1.2.1)
|
||||
erubis (2.7.0)
|
||||
eventmachine (1.0.3)
|
||||
execjs (1.4.0)
|
||||
multi_json (~> 1.0)
|
||||
expression_parser (0.9.0)
|
||||
factory_girl (4.2.0)
|
||||
activesupport (>= 3.0.0)
|
||||
factory_girl_rails (4.2.1)
|
||||
factory_girl (~> 4.2.0)
|
||||
railties (>= 3.0.0)
|
||||
faye-websocket (0.4.7)
|
||||
eventmachine (>= 0.12.0)
|
||||
fivemat (1.2.1)
|
||||
formtastic (2.2.1)
|
||||
actionpack (>= 3.0)
|
||||
haml (3.1.7)
|
||||
hike (1.2.1)
|
||||
hpricot (0.8.6)
|
||||
http_parser.rb (0.5.3)
|
||||
i18n (0.6.1)
|
||||
journey (1.0.4)
|
||||
jquery-rails (2.2.0)
|
||||
@ -143,6 +170,8 @@ GEM
|
||||
sass (>= 3.1.10)
|
||||
tilt (~> 1.3)
|
||||
sexp_processor (4.1.4)
|
||||
shoulda-matchers (2.1.0)
|
||||
activesupport (>= 3.0.0)
|
||||
sprockets (2.2.2)
|
||||
hike (~> 1.2)
|
||||
multi_json (~> 1.0)
|
||||
@ -172,6 +201,8 @@ GEM
|
||||
expression_parser
|
||||
wikitext (2.1.1)
|
||||
will_paginate (3.0.4)
|
||||
xpath (2.0.0)
|
||||
nokogiri (~> 1.3)
|
||||
yaml_db (0.2.3)
|
||||
|
||||
PLATFORMS
|
||||
@ -182,9 +213,12 @@ DEPENDENCIES
|
||||
aws-sdk
|
||||
better_errors
|
||||
binding_of_caller
|
||||
capybara-screenshot
|
||||
coffee-rails (~> 3.2.0)
|
||||
devise
|
||||
exception_notification!
|
||||
factory_girl_rails
|
||||
fivemat
|
||||
formtastic
|
||||
haml
|
||||
hpricot
|
||||
@ -192,11 +226,13 @@ DEPENDENCIES
|
||||
newrelic_rpm
|
||||
paperclip
|
||||
pg
|
||||
poltergeist!
|
||||
powder
|
||||
rails (~> 3.2.0)
|
||||
rdiscount
|
||||
ruby_parser
|
||||
sass-rails (~> 3.2.0)
|
||||
shoulda-matchers
|
||||
sqlite3-ruby
|
||||
squeel
|
||||
uglifier
|
||||
|
||||
0
test/fixtures/.gitkeep
vendored
0
test/fixtures/.gitkeep
vendored
11
test/fixtures/admin_users.yml
vendored
11
test/fixtures/admin_users.yml
vendored
@ -1,11 +0,0 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/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
|
||||
9
test/fixtures/categories.yml
vendored
9
test/fixtures/categories.yml
vendored
@ -1,9 +0,0 @@
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
description: MyText
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
description: MyText
|
||||
11
test/fixtures/contacts.yml
vendored
11
test/fixtures/contacts.yml
vendored
@ -1,11 +0,0 @@
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/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
|
||||
11
test/fixtures/pages.yml
vendored
11
test/fixtures/pages.yml
vendored
@ -1,11 +0,0 @@
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/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
|
||||
19
test/fixtures/photos.yml
vendored
19
test/fixtures/photos.yml
vendored
@ -1,19 +0,0 @@
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
one:
|
||||
category_id: 1
|
||||
content_type: MyString
|
||||
filename: MyString
|
||||
thumbnail: MyString
|
||||
size: 1
|
||||
width: 1
|
||||
height: 1
|
||||
|
||||
two:
|
||||
category_id: 1
|
||||
content_type: MyString
|
||||
filename: MyString
|
||||
thumbnail: MyString
|
||||
size: 1
|
||||
width: 1
|
||||
height: 1
|
||||
@ -1,7 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::AdminControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::AdminUsersControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::CategoriesControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,7 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::DashboardControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@ -1,7 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::DownloadsControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::PagesControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::PhotosControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,7 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::UnlocksControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@ -1,45 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class CategoriesControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:categories)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create category" do
|
||||
assert_difference('Category.count') do
|
||||
post :create, :category => { }
|
||||
end
|
||||
|
||||
assert_redirected_to category_path(assigns(:category))
|
||||
end
|
||||
|
||||
test "should show category" do
|
||||
get :show, :id => categories(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, :id => categories(:one).to_param
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update category" do
|
||||
put :update, :id => categories(:one).to_param, :category => { }
|
||||
assert_redirected_to category_path(assigns(:category))
|
||||
end
|
||||
|
||||
test "should destroy category" do
|
||||
assert_difference('Category.count', -1) do
|
||||
delete :destroy, :id => categories(:one).to_param
|
||||
end
|
||||
|
||||
assert_redirected_to categories_path
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ContactsControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
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,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class NotifierTest < ActionMailer::TestCase
|
||||
# replace this with your real tests
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PagesControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PhotosControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
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,7 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class AdminUserTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class CategoryTest < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ContactTest < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::AdminHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::DashboardHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::DownloadsHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Admin::UnlocksHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class CategoriesHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ContactsHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class HomeHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PagesHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,4 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PhotosHelperTest < ActionView::TestCase
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PageTest < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
@ -1,8 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PhotoTest < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user