Permalink
Browse files

Fix up specs.

  • Loading branch information...
1 parent 0d6e92b commit 2fdb4f931810ed7143a2006b6a71759034667193 Michael Bleigh committed Mar 16, 2011
Showing with 5 additions and 4 deletions.
  1. +3 −3 spec/rails_wizard/recipe_spec.rb
  2. +2 −1 spec/rails_wizard/template_spec.rb
@@ -79,14 +79,14 @@
subject{ RailsWizard::Recipe }
it 'a < b.run_after(a)' do
A = subject.generate('a', '#')
- B = subject.generate('b', '#', :run_after => [A])
-
+ B = subject.generate('b', '#', :run_after => ['a'])
+
(A < B).should be_true
end
it 'a > b.run_before(a)' do
A = subject.generate('a', '#')
- B = subject.generate('b', '#', :run_before => [A])
+ B = subject.generate('b', '#', :run_before => ['a'])
(A > B).should be_true
end
@@ -12,12 +12,13 @@
describe '#recipes_with_dependencies' do
def r(*deps)
- mock(:Class, :requires => deps)
+ mock(:Class, :requires => deps, :superclass => RailsWizard::Recipe)
end
subject do
@template = RailsWizard::Template.new([])
@template.stub!(:recipes).and_return(@recipes)
+ @template.stub!(:recipe_classes).and_return(@recipes)
@template
end

0 comments on commit 2fdb4f9

Please sign in to comment.