lib/watir_install/generators/tests/spec/crud.rb.tt in watir_install-0.3.0 vs lib/watir_install/generators/tests/spec/crud.rb.tt in watir_install-0.3.1
- old
+ new
@@ -1,26 +1,28 @@
require 'spec_helper'
-describe <%= name.split('_').map(&:capitalize).join %> do
- let(:<%= klass.downcase %>) { <%= name.split('_').map(&:capitalize).join %>::Data::<%= klass %>.new }
+module <%= name.split('_').map(&:capitalize).join %>
+ describe <%= name.split('_').map(&:capitalize).join %> do
+ let(:<%= klass.downcase %>) { Data::<%= klass %>.new }
- it 'creates' do
+ it 'creates' do
- end
+ end
- it 'shows' do
+ it 'shows' do
- end
+ end
- it 'lists' do
+ it 'lists' do
- end
+ end
- it 'edits' do
+ it 'edits' do
- end
+ end
- it 'deletes' do
+ it 'deletes' do
- end
+ end
-end
+ end
+end
\ No newline at end of file