-
-
Save dchelimsky/111522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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