Sha256: 753b86303fe11348d9f3e7c3d2ac658b5c629b5f9584974bc03f1858a809fa3b
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require "spec_helper" require "generators/angular_velocity/service/service_generator" describe AngularVelocity::Generators::ServiceGenerator 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"] ("#{angular_test_app_path}/services/post_service.coffee").should be_a_file_containing_text(%{ class Post}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angular_velocity-0.0.3alpha | spec/service/service_generator_spec.rb |