Skip to content

Instantly share code, notes, and snippets.

@cherring
Created May 14, 2009 05:56
Show Gist options
  • Save cherring/111513 to your computer and use it in GitHub Desktop.
Save cherring/111513 to your computer and use it in GitHub Desktop.
describe Scorecard::Score::BusinessCapacityScore,"benchmark" do
before do
@business_capacity = Scorecard::Score::BusinessCapacityScore.new
@business_capacity.ues = false
@stream_fields = @business_capacity.assistance_type_stream_fields
end
@stream_fields.each do |stream_label|
it "should get the stream: #{stream_label}" do
end
end
end
### I can do this
%w(group1 group2 group3).each do |name|
it "should call group: #{name}" do
### Spec code here
end
end
### So why not with an instance variable??
@groups.each do |name|
it "should call group: #{name}" do
### Spec code here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment