Skip to content

Commit

Permalink
Reconfiguring test directory structure to account for lack of shoulda…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
gus committed May 12, 2010
1 parent 40b1cd2 commit b6a4087
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
10 changes: 1 addition & 9 deletions Rakefile
Expand Up @@ -10,15 +10,7 @@ task(:set_test_env) { ENV['RACK_ENV'] ||= 'test' }
desc "Run all tests" desc "Run all tests"
Rake::TestTask.new("test") do |t| Rake::TestTask.new("test") do |t|
t.libs.concat ['./lib', './test'] t.libs.concat ['./lib', './test']
t.test_files = FileList['test/riot_tests/*_test.rb'] t.test_files = FileList['test/*_test.rb']
t.verbose = true
end

task "test:shoulda" => [:set_test_env]
desc "Run all Shoulda based tests"
Rake::TestTask.new("test:shoulda") do |t|
t.libs.concat ['./lib', './test']
t.test_files = FileList['test/shoulda_tests/*_test.rb']
t.verbose = true t.verbose = true
end end


Expand Down
@@ -1,4 +1,4 @@
require 'riot_tests/test_helper' require 'teststrap'


context "Application Test:" do context "Application Test:" do


Expand Down
2 changes: 1 addition & 1 deletion test/riot_tests/helpers_test.rb → test/helpers_test.rb
@@ -1,4 +1,4 @@
require 'riot_tests/test_helper' require 'teststrap'


context "Helpers Test:" do context "Helpers Test:" do
setup do setup do
Expand Down
@@ -1,4 +1,4 @@
require 'riot_tests/test_helper' require 'teststrap'


context "Responders Test:" do context "Responders Test:" do
setup do setup do
Expand Down
@@ -1,4 +1,4 @@
require 'riot_tests/test_helper' require 'teststrap'


context "Riot Macros Test:" do context "Riot Macros Test:" do
setup do setup do
Expand Down
File renamed without changes.

0 comments on commit b6a4087

Please sign in to comment.