Thursday, 9 August 2012

:send

(1..3).each do |index|
b = Bucket.find(index)
b.is_linear.should_not == send(:"bucket_#{index}_before").is_linear
# b.is_default_active.should_not == bucket_1_before.is_default_active
# b.is_default_active.should_not == bucket_1_before.is_default_active
end
view raw gistfile1.rb hosted with ❤ by GitHub

No comments:

Post a Comment