Merge pull request #858 from chrishunt/chrishunt/create-explicit-spec-task

Create 'spec' rake task
This commit is contained in:
Sam 2013-05-17 16:12:08 -07:00
commit 049a4c66e0
3 changed files with 5 additions and 2 deletions

View File

@ -103,7 +103,7 @@ group :test, :development do
gem 'mocha', require: false
gem 'rb-fsevent', require: RUBY_PLATFORM =~ /darwin/i ? 'rb-fsevent' : false
gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM =~ /linux/i ? 'rb-inotify' : false
gem 'rspec-rails'
gem 'rspec-rails', require: false
gem 'shoulda', require: false
gem 'simplecov', require: false
gem 'terminal-notifier-guard', require: false

View File

@ -20,7 +20,7 @@ to rails, you are likely much better off with our **[Discourse Vagrant Developer
2. `rake db:migrate`
3. `rake db:test:prepare`
4. `rake db:seed_fu`
5. Try running the specs: `bundle exec rspec`
5. Try running the specs: `bundle exec rake spec`
6. `bundle exec rails server`
You should now be able to connect to rails on http://localhost:3000 - try it out! The seed data includes a pinned topic that explains how to get an admin account, so start there! Happy hacking!

3
lib/tasks/rspec.rake Normal file
View File

@ -0,0 +1,3 @@
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)