Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix up specs.

  • Loading branch information...
commit 2fdb4f931810ed7143a2006b6a71759034667193 1 parent 0d6e92b
Michael Bleigh authored
View
6 spec/rails_wizard/recipe_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
View
3  spec/rails_wizard/template_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.