<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hmmmm<div><br class="webkit-block-placeholder"></div><div>I just ran this and 2 examples, 0 failures</div><div><br></div><div><div>class Audience</div><div>  </div><div>  attr_accessor :stats</div><div>  </div><div>  def initialize(name = nil,value = nil) </div><div>    @name ||= 'all'</div><div>    @value ||= value</div><div>  end</div><div>  </div><div>  def stats=(flux)</div><div>    @stats = @value * flux / 0.025</div><div>  end</div><div><br class="webkit-block-placeholder"></div><div>  def market_share</div><div>    "The Market share is for #{@name} at a high of #{@stats}"</div><div>  end</div><div>  </div><div>end</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>describe "Audience.stats" do</div><div>  </div><div>  before :all do</div><div>    @audience = Audience.new(nil,20)</div><div>  end</div><div>  </div><div>  it  "should have a stats of 80 when passed a flux of 10" do</div><div>    @audience.stats = 10</div><div>    @audience.stats.should == 8000</div><div>  end</div><div>  </div><div>  it "should return an error when passed a string" do</div><div>    lambda {@audience.stats = 'Market Goblin'}.should raise_error</div><div>  end</div><div>  </div><div>end</div><div><div>On 30/01/2008, at 1:55 PM, Andrew WC Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">try it, does the same thing ='(<br><br><div class="gmail_quote"><br></div></blockquote></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"></span></span></span></span></span> </div><br></div></body></html>