test/integration/atom_test.rb in ruby-slippers-0.1.11 vs test/integration/atom_test.rb in ruby-slippers-0.1.40
- old
+ new
@@ -4,11 +4,11 @@
context Article do
setup do
@config = RubySlippers::Engine::Config.new(:markdown => true, :author => AUTHOR, :url => URL)
@ruby_slippers = Rack::MockRequest.new(RubySlippers::Engine::App.new(@config))
- RubySlippers::Engine::Paths[:articles] = "test/fixtures/articles"
if File.expand_path("../../", __FILE__) =~ /engine/
+ RubySlippers::Engine::Paths[:articles] = "test/fixtures/articles"
RubySlippers::Engine::Paths[:templates] = "test/fixtures/templates"
RubySlippers::Engine::Paths[:pages] = "test/fixtures/pages"
end
end