You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blueprints
I'm planning on removing using of instance variables when defining
blueprints. Instead blueprints will be defined like this:
blueprint :sample1 do
set :sample, 'sample'
end
# In test
build :sample1
sample.should == 'sample'
Of course implicit setting will be available too:
blueprint :sample2 do
'sample'
end
# In test
build :sample2
sample2.should == 'sample'
I'm also planning on extending rspec/test-unit/cucumber world objects
with method `set`
# In test
set :sample1, 'sample'
sample1.should == 'sample'