aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-02-24 14:30:24 +0000
committerLouise Crow <louise.crow@gmail.com>2015-02-24 14:50:51 +0000
commit049af6c6dafb5ee031240c724ab0759d9f1600ef (patch)
tree9dc46f15c1a53fa43e24a53041722d7e97ad41ca
parent796211102323302c607dcdca3528441a63fdf98f (diff)
Use spec format for consistency with Alaveteli.
This is also more easily runnable from the Alaveteli dir.
-rw-r--r--README.md7
-rw-r--r--spec/alavetelitheme_spec.rb11
2 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index ebf8b4b..2662b4e 100644
--- a/README.md
+++ b/README.md
@@ -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