Sha256: 6861484963471c6ab30c630401061e563ea918ad1aff756e2ffd5703ec29ce68
Contents?: true
Size: 672 Bytes
Versions: 75
Compression:
Stored size: 672 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 end
Version data entries
75 entries across 75 versions & 5 rubygems