lib/roger/testing/mock_project.rb in roger-1.5.0 vs lib/roger/testing/mock_project.rb in roger-1.6.0
- old
+ new
@@ -1,6 +1,7 @@
require File.dirname(__FILE__) + "/../project"
+require File.dirname(__FILE__) + "/mock_shell"
require "test_construct"
module Roger
module Testing
# A Mock project. If initialized without a path it will
@@ -28,17 +29,20 @@
%w(html partials layouts releases).each do |dir|
construct.directory dir
end
end
-
# Call super to initialize
super(path, config)
end
# Destroy will remove all files/directories
def destroy
teardown_construct(construct) if construct
+ end
+
+ def shell
+ @shell ||= MockShell.new
end
end
end
end