Permalink
Browse files

Remove additions done in RailsCasts

  • Loading branch information...
1 parent 6f778d9 commit 2d7238b6e0f83922f46c9d84e02ef34ebd9c7a66 @skalnik committed May 18, 2012
Showing with 0 additions and 90 deletions.
  1. +0 −23 todo/Gemfile
  2. +0 −27 todo/spec/requests/tasks_spec.rb
  3. +0 −40 todo/spec/spec_helper.rb
View
@@ -5,28 +5,5 @@ gem 'sqlite3'
gem 'nifty-generators'
gem 'jquery-rails'
-# Use unicorn as the web server
-# gem 'unicorn'
-
-# Deploy with Capistrano
-# gem 'capistrano'
-
-# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
-# gem 'ruby-debug'
-# gem 'ruby-debug19', :require => 'ruby-debug'
-
-# Bundle the extra gems:
-# gem 'bj'
-# gem 'nokogiri'
-# gem 'sqlite3-ruby', :require => 'sqlite3'
-# gem 'aws-s3', :require => 'aws/s3'
-
-# Bundle gems for the local environment. Make sure to
-# put test-only gems in this group so their generators
-# and rake tasks are available in development mode:
group :development, :test do
- gem 'rspec-rails'
- gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
- gem 'launchy'
- gem 'database_cleaner'
end
@@ -1,27 +0,0 @@
-require 'spec_helper'
-
-describe "Tasks" do
- describe "GET /tasks", :js => true do
- it "displays tasks" do
- Task.create!(:name => "paint fence")
- visit tasks_path
- page.should have_content("paint fence")
- end
-
- it "supports js" do
- visit tasks_path
- click_link "test js"
- page.should have_content("js works")
- end
- end
-
- describe "POST /tasks" do
- it "create task" do
- visit tasks_path
- fill_in "New Task", :with => "mow lawn"
- click_button "Add"
- page.should have_content("Successfully added task.")
- page.should have_content("mow lawn")
- end
- end
-end
View
@@ -1,40 +0,0 @@
-# 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'
-require 'capybara/rspec'
-
-# Requires supporting ruby files with custom matchers and macros, etc,
-# in spec/support/ and its subdirectories.
-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
- config.mock_with :rspec
-
- # 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 = false
-
- config.before(:suite) do
- DatabaseCleaner.strategy = :truncation
- end
-
- config.before(:each) do
- DatabaseCleaner.start
- end
-
- config.after(:each) do
- DatabaseCleaner.clean
- end
-end

0 comments on commit 2d7238b

Please sign in to comment.