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

Version Path
rails_apps_composer-1.0.25 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.24 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.23 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.22 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.21 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.20 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.19 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.18 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.17 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.16 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.15 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.14 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.12 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.11 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.10 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.7 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.6 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.5 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.4 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.0.3 spec/rails_wizard/recipes_spec.rb