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.1.36 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.35 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.34 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.33 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.31 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.30 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.29 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.28 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.27 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.25 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.24 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.23 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.22 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.21 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.20 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.19 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.18 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.17 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.16 spec/rails_wizard/recipes/sanity_spec.rb
rails_apps_composer-3.1.15 spec/rails_wizard/recipes/sanity_spec.rb