Permalink
Browse files

[BUG] Fix generating controllers with lower-case names

  • Loading branch information...
1 parent 50ba7ff commit ec37eb899e9f71eb2d4b49328abe93a934a49c1c @bklang bklang committed Sep 22, 2012
@@ -1,6 +1,6 @@
# encoding: utf-8
-class <%= @controller_name %> < Adhearsion::CallController
+class <%= @controller_name.camelcase %> < Adhearsion::CallController
def run
end
end
@@ -1,10 +1,10 @@
# encoding: utf-8
-describe <%= @controller_name %> do
+describe <%= @controller_name.camelcase %> do
let(:mock_call) { mock 'Call', :to => '1112223333', :from => "2223334444" }
let(:metadata) { {} }
- subject { <%= @controller_name %>.new(mock_call, metadata) }
+ subject { <%= @controller_name.camelcase %>.new(mock_call, metadata) }
it "should have empty metadata" do
subject.metadata.should eq({})

0 comments on commit ec37eb8

Please sign in to comment.