Sha256: aa4768ac9c3f0c2b962c2f725a7304cbbf615cccf2eafd84c9bfec554f2d6ba9
Contents?: true
Size: 889 Bytes
Versions: 28
Compression:
Stored size: 889 Bytes
Contents
require 'spec_helper' describe RailsWizard::Recipes do subject{ RailsWizard::Recipes } let(:recipe){ RailsWizard::Recipe.generate("recipe_test", "# Testing", :name => "Test Recipe", :category => "test", :description => "Just a test.")} before(:all) do RailsWizard::Recipes.add(recipe) end it '.list_classes should include recipe classes' do subject.list_classes.should be_include(recipe) end it '.list should include recipe keys' do subject.list.should be_include('recipe_test') end describe '.for' do it 'should find for a given category' do RailsWizard::Recipes.for('test').should be_include('recipe_test') end end it 'should add recipes in a directory with add_from_directory' do subject.add_from_directory(File.join(File.dirname(__FILE__), '..', 'test_recipes')) subject.list.should include 'test_recipe_in_file' end end
Version data entries
28 entries across 28 versions & 1 rubygems