spec/scaffold_spec_spec.rb in scaffoldhub-0.1.0 vs spec/scaffold_spec_spec.rb in scaffoldhub-0.1.1

- old
+ new

@@ -55,9 +55,15 @@ it 'should parse the controller file' do find_spec(subject, :controller, 'templates/controller.rb').should_not be_nil end + it 'should parse the helper file' do + helper_spec = find_spec(subject, :helper, 'templates/helper.rb') + helper_spec.should_not be_nil + helper_spec[:rename].should == 'NAME_helper.rb' + end + it 'should parse a view file' do find_spec(subject, :view, 'templates/_form.html.erb').should_not be_nil end it 'should parse with_options and use :src as a folder for the given file' do