Sha256: 5c9ed8a42292cad704f6e028350ea6d2f94a2b28c01a47eaaefd0def0233739a

Contents?: true

Size: 790 Bytes

Versions: 2

Compression:

Stored size: 790 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) do 
    prepare_destination
    run_generator ["post"]
  end
  

  it "should generator a post service" do
    
    ("#{angular_path}/services/post_service.coffee").should be_a_file_containing_text(%{  class Post})
  end


  it "should generate a post service spec" do
    service_spec_path = "#{angular_spec_path}/services/post_service_spec.coffee" 
    service_spec_path.should be_a_file_containing_text(%{describe "Service: Post", () ->})
  end

  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
angular_velocity-1.0.0 spec/service/service_generator_spec.rb
angular_velocity-0.0.6alpha spec/service/service_generator_spec.rb