dchelimsky (owner)

Fork Of

Revisions

gist: 111522 Download_button fork
public
Public Clone URL: git://gist.github.com/111522.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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