Sha256: 6f53f80f92ddd1c52eea309e64e9062edfeebcb3c4586ff6eeea92be8e629e76

Contents?: true

Size: 999 Bytes

Versions: 278

Compression:

Stored size: 999 Bytes

Contents

require 'spec_helper'

# This is a simple set of tests to make sure that
# all of the recipes conform to the base requirements.

RailsWizard::Recipes.list_classes.each do |recipe|
  describe recipe do
    it("should have a name"){ recipe.name.should be_kind_of(String) }    
    it("should have a description"){ recipe.description.should be_kind_of(String) }
    it("should have a template"){ recipe.template.should be_kind_of(String) }
    it("should be able to compile"){ recipe.new.compile.should be_kind_of(String) }
    
    it "should have a string or nil category" do
      if recipe.category
        recipe.category.should be_kind_of(String)
      end
    end

    it "should have a Config or nil config" do
      if recipe.config
        recipe.config.should be_kind_of(RailsWizard::Config)
      end
    end

    it "should be in the list" do
      RailsWizard::Recipes.list_classes.should be_include(recipe)
      RailsWizard::Recipes.list.should be_include(recipe.key)
    end
  end
end

Version data entries

278 entries across 278 versions & 7 rubygems

Version Path
rails_apps_composer-3.0.40 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.39 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.38 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.37 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.36 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.35 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.34 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.33 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.32 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.31 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.30 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.29 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.28 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.27 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.26 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.25 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.24 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.23 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.22 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.21 spec/rails_wizard/recipes/sanity_spec.rb