Skip to content

Commit 9c09236

Browse files
committed
Add explicit 'spec' rake tasks
This doesn't require auto-loading of rspec-rails and puts the 'spec' task in the rake task list (rake -T)
1 parent d405e0d commit 9c09236

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/DEVELOPER-ADVANCED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ to rails, you are likely much better off with our **[Discourse Vagrant Developer
2020
2. `rake db:migrate`
2121
3. `rake db:test:prepare`
2222
4. `rake db:seed_fu`
23-
5. Try running the specs: `bundle exec rspec`
23+
5. Try running the specs: `bundle exec rake spec`
2424
6. `bundle exec rails server`
2525

2626
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!

lib/tasks/rspec.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require 'rspec/core/rake_task'
2+
3+
RSpec::Core::RakeTask.new(:spec)

0 commit comments

Comments
 (0)