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.20 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.19 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.18 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.17 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.16 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.15 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.14 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.13 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.12 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.11 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.10 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.9 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.8 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.7 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.6 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.5 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.4 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.3 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.2 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.0.1 spec/rails_wizard/recipes/sanity_spec.rb