rails_apps_composer 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/rails_wizard/template_spec.rb +6 -6
- data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c21a490508b96261d584126f3909e1e552b3584a
|
4
|
+
data.tar.gz: 500c90885f4a9c21cb43013fb93ff1ec21aa98f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c28cd50756cb4390535e53d8f4e1d3250662af3b17a018b38f30e49ae376c51695939b6fc2c7c48b28f84bbc31f0a6a052182545367ca564c4c18ab5bf7620ad
|
7
|
+
data.tar.gz: 71c9a39b69de1338b0f7f3a77a44062923a92ac1506bb67d13e9f78d71ba7d0dbe29da726b9f6357a4dbe0e633e614cdc4d970c5dc39801405c82cf4b6db3139
|
@@ -36,7 +36,7 @@ describe RailsWizard::Template do
|
|
36
36
|
|
37
37
|
subject do
|
38
38
|
@template = RailsWizard::Template.new([])
|
39
|
-
@template.stub
|
39
|
+
@template.stub(:recipes_with_dependencies).and_return(@recipes)
|
40
40
|
@template.resolve_recipes.map { |r| r.key }
|
41
41
|
end
|
42
42
|
|
@@ -56,16 +56,16 @@ describe RailsWizard::Template do
|
|
56
56
|
|
57
57
|
describe '#recipes_with_dependencies' do
|
58
58
|
def r(*deps)
|
59
|
-
|
59
|
+
double(:Class, :requires => deps, :superclass => RailsWizard::Recipe)
|
60
60
|
end
|
61
61
|
|
62
62
|
subject do
|
63
|
-
@template = RailsWizard::Template.new([])
|
64
|
-
@template.stub
|
65
|
-
@template.stub
|
63
|
+
@template = RailsWizard::Template.new([])
|
64
|
+
@template.stub(:recipes).and_return(@recipes)
|
65
|
+
@template.stub(:recipe_classes).and_return(@recipes)
|
66
66
|
@template
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
69
|
it 'should return the same number recipes if none have dependencies' do
|
70
70
|
@recipes = [r, r]
|
71
71
|
subject.recipes_with_dependencies.size.should == 2
|
data/version.rb
CHANGED