[rspec-users] [Cucumber] attribute readers in World?

aidy lewis aidy.lewis at googlemail.com
Tue Apr 14 08:19:55 EDT 2009


Hi,

#env.rb
class ProjectWorld
  include Spec::Matchers

  def browser
    @browser ||= Browser.new		
  end
end

World do
  ProjectWorld.new
end

Instead of using explicit getters here, can I not use attribute readers?

Aidy


More information about the rspec-users mailing list