spec/controller_generator_spec.rb in eyeballs-0.3.5 vs spec/controller_generator_spec.rb in eyeballs-0.3.6
- old
+ new
@@ -2,10 +2,11 @@
describe Eyeballs::ControllerGenerator do
before(:all) do
create_test_root
- run_command("eyeballs generate controller Paul")
+ FileUtils.cd(test_root)
+ Eyeballs::ControllerGenerator.start(["Paul"])
end
let(:controller_file) { file('app/controllers/paul_controller.js') }
it "should create my controller" do
\ No newline at end of file