Sorry if this is documented somewhere, I can’t find it on rspec.info
Say I have this code (simple example based no the RSpec site):
describe “A new account” do
# what goes here?
before do @account = Account.new end it "should have a balance of $0" do @account.balance.should == 0 end
…what can I put in the describe block to make the Account class
visible? I tried include, but that doesn’t work (uninitialized
I don’t want to include into the global namespace, because I’ve got a
module hierarchy that could be several layers deep, and I don’t want
to flatten it out.