test/helper.rb in padrino-gen-0.11.3 vs test/helper.rb in padrino-gen-0.11.4
- old
+ new
@@ -95,10 +95,10 @@
end
# expects_initializer :test, "# Example"
def expects_initializer(name, body,options={})
#options.reverse_merge!(:root => "/tmp/sample_project")
- path = File.join(options[:root],'lib',"#{name}_init.rb")
+ path = File.join(options[:root],'lib',"#{name}_initializer.rb")
instance = mock
instance.expects(:invoke!).at_least_once
include_text = " register #{name.to_s.camelize}Initializer\n"
Thor::Actions::InjectIntoFile.expects(:new).with(anything,anything, include_text, anything).returns(instance)
Thor::Actions::CreateFile.expects(:new).with(anything, path, kind_of(Proc), anything).returns(instance)