Permalink
Browse files

Merge pull request #87 from clowder/fix_specs_passing_by_accident

Removed memoization [Foreman::Utils.parse_concurrency]
  • Loading branch information...
2 parents ada41ce + 02c8d2c commit c6a410b664c94e32ee61c21ae24940c8efb19704 @ddollar committed Oct 19, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/foreman/utils.rb
  2. +1 −1 spec/foreman/export/bluepill_spec.rb
  3. +1 −1 spec/foreman/export/upstart_spec.rb
@@ -3,7 +3,7 @@
class Foreman::Utils
def self.parse_concurrency(concurrency)
- @concurrency ||= begin
+ begin
pairs = concurrency.to_s.gsub(/\s/, "").split(",")
pairs.inject(Hash.new(1)) do |hash, pair|
process, amount = pair.split("=")
@@ -12,7 +12,7 @@
before(:each) { stub(bluepill).say }
it "exports to the filesystem" do
- bluepill.export("/tmp/init")
+ bluepill.export("/tmp/init", :concurrency => "alpha=2")
File.read("/tmp/init/app.pill").should == example_export_file("bluepill/app.pill")
end
@@ -12,7 +12,7 @@
before(:each) { stub(upstart).say }
it "exports to the filesystem" do
- upstart.export("/tmp/init")
+ upstart.export("/tmp/init", :concurrency => "alpha=2")
File.read("/tmp/init/app.conf").should == example_export_file("upstart/app.conf")
File.read("/tmp/init/app-alpha.conf").should == example_export_file("upstart/app-alpha.conf")

0 comments on commit c6a410b

Please sign in to comment.