test/functional/test_application.rb in spontaneous-0.2.0.beta5 vs test/functional/test_application.rb in spontaneous-0.2.0.beta6
- old
+ new
@@ -54,9 +54,19 @@
@site.config.butter = "yummy"
@site.config.butter.must_equal "yummy"
end
end
+
+ describe "initializers" do
+ it "all run" do
+ defined?(INITIALIZER1_RUN).must_equal "constant"
+ INITIALIZER1_RUN.must_equal true
+ defined?(INITIALIZER2_RUN).must_equal "constant"
+ INITIALIZER2_RUN.must_equal true
+ end
+ end
+
describe "back, development" do
before do
@site = Spontaneous.init(:root => site_root, :mode => :back, :environment => :development)
Sequel::Migrator.apply(Spontaneous.database, 'db/migrations')