Skip to content

Commit

Permalink
Specs should be slightly more verbose, for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Voorhis committed Nov 2, 2008
1 parent ffde31b commit 080fbfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/env_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

describe Env do
def cresc(factor, score)
grp(score, :velocity => env { |vel, ph|
multiplier = (factor - 1.0) * (1.0 + ph)
(vel * multiplier).to_i
})
group(score,
:velocity => env { |velocity, phase|
multiplier = (factor - 1.0) * (1.0 + phase)
(velocity * multiplier).to_i })
end

it "can be used to implement various transforms" do
Expand Down

0 comments on commit 080fbfa

Please sign in to comment.