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-2.0.1 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.5.5 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.5.4 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.5.3 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.5.2 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.5.1 spec/rails_wizard/recipes_spec.rb
thyone_creator-0.0.5 spec/rails_wizard/recipes_spec.rb
thyone_creator-0.0.4 spec/rails_wizard/recipes_spec.rb
thyone_creator-0.0.3 spec/rails_wizard/recipes_spec.rb
thyone_creator-0.0.2 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.5.0 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.15 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.14 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.13 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.12 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.11 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.10 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.9 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.8 spec/rails_wizard/recipes_spec.rb
rails_apps_composer-1.4.7 spec/rails_wizard/recipes_spec.rb