diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | spec/alavetelitheme_spec.rb | 11 | ||||
-rw-r--r-- | test/alavetelitheme_test.rb | 4 | ||||
-rw-r--r-- | test/test_helper.rb | 3 |
4 files changed, 22 insertions, 3 deletions
@@ -20,4 +20,11 @@ You can then switch the theme the application is using: bundle exec rake themes:install +## To run tests: + +To run tests, in the Alaveteli Rails.root (with this theme installed): + + bundle exec rspec lib/themes/alavetelitheme/spec + + Copyright (c) 2011 mySociety, released under the MIT license diff --git a/spec/alavetelitheme_spec.rb b/spec/alavetelitheme_spec.rb new file mode 100644 index 0000000..0bb0fab --- /dev/null +++ b/spec/alavetelitheme_spec.rb @@ -0,0 +1,11 @@ +# If defined, ALAVETELI_TEST_THEME will be loaded in config/initializers/theme_loader +ALAVETELI_TEST_THEME = 'alavetelitheme' +require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','spec','spec_helper')) + +describe "testing the truth" do + + it 'should be true' do + assert true + end + +end diff --git a/test/alavetelitheme_test.rb b/test/alavetelitheme_test.rb index 9e9e34f..3e2d782 100644 --- a/test/alavetelitheme_test.rb +++ b/test/alavetelitheme_test.rb @@ -1,8 +1,8 @@ -require 'test_helper' - +require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper')) class AlavetelithemeTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end + end diff --git a/test/test_helper.rb b/test/test_helper.rb index cf148b8..a2052ee 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,4 @@ require 'rubygems' require 'active_support' -require 'active_support/test_case'
\ No newline at end of file +require 'minitest/autorun' +require 'active_support/test_case' |