Skip to content

Commit

Permalink
Fix failing teaspoon tests
Browse files Browse the repository at this point in the history
Closes #367.
  • Loading branch information
Mike Graves committed Jan 8, 2016
1 parent 613d853 commit 09e2fe3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end

desc 'Run Teaspoon JavaScript tests'
task :teaspoon do
system("TEASPOON_RAILS_ENV='.internal_test_app/config/environment' teaspoon --require=.internal_test_app/spec/teaspoon_env.rb")
system("teaspoon --require=.internal_test_app/spec/teaspoon_env.rb")
end

desc "Execute Continuous Integration build"
Expand Down
5 changes: 5 additions & 0 deletions spec/teaspoon_env.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unless defined?(Rails)
ENV["RAILS_ROOT"] = File.expand_path("../../", __FILE__)
require File.expand_path("../../config/environment", __FILE__)
end

Teaspoon.configure do |config|
# Determines where the Teaspoon routes will be mounted. Changing this to "/jasmine" would allow you to browse to
# `http://localhost:3000/jasmine` to run your tests.
Expand Down

0 comments on commit 09e2fe3

Please sign in to comment.