Sha256: 058f83b98c804bc7fe1ffa9e69f107d95063b96d35992986df9d66d1772f912c
Contents?: true
Size: 794 Bytes
Versions: 2
Compression:
Stored size: 794 Bytes
Contents
require "spec_helper" require "generators/angular_velocity/controller/controller_generator" describe AngularVelocity::Generators::ControllerGenerator do include GeneratorSpec::TestCase include GenSpecHelpers include AngularVelocity::Generators::AngularConfig destination File.expand_path("../../tmp", __FILE__) before(:each) {prepare_destination} let(:angular_test_app_path) { "spec/tmp/#{angular_path}" } it "should generator a controller" do run_generator ["post"] file_should_exist("#{angular_test_app_path}/controllers/post_controller.coffee") ("#{angular_test_app_path}/controllers/post_controller.coffee").should be_a_file_containing_text(%{angular.module('AngularVelocityApp').controller( 'PostCtrl', [ '$scope', PostController ])}) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
angular_velocity-0.0.3alpha | spec/controller/controller_generator_spec.rb |
angular_velocity-0.0.2alpha | spec/controller/controller_generator_spec.rb |