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.0 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.3.2 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.3.1 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2.8 spec/rails_wizard/recipes_spec.rb
rails_wizard-0.1.5 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2.5 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2.4 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2.3 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2.2 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2.1 spec/rails_wizard/recipes_spec.rb
rails3_devise_wizard-0.2 spec/rails_wizard/recipes_spec.rb
rails_wizard-0.1.4 spec/rails_wizard/recipes_spec.rb
rails_wizard-0.1.3 spec/rails_wizard/recipes_spec.rb
rails_wizard-0.1.2 spec/rails_wizard/recipes_spec.rb
rails_wizard-0.1.0 spec/rails_wizard/recipes_spec.rb