Zach Dennis wrote:
> On Thu, Mar 19, 2009 at 5:28 AM, jazzez ravi
> wrote:
>> �before(:each) do
>> class Bowling
>>
>> require 'spec' --> �No Error But also no output mentioned as per that
>> website.
>>
>> Please anyone help to continue that program.
>
> Try to put this at the top:
>
> require
David Chelimsky wrote:
> On Thu, Mar 19, 2009 at 4:28 AM, jazzez ravi
> wrote:
>> �before(:each) do
>> class Bowling
>>
>>>ruby bowling_spec.rb --format specdoc
>
> Use the spec command (that's what's there on http://rspec.info):
>
> spec bowling_spec.rb --format specdoc
>
> Cheers,
> David
H
On Thu, Mar 19, 2009 at 5:28 AM, jazzez ravi wrote:
> Hi All,
>
> 1. Just now I installed rspec1.2.0 and dependencies
>
> 2. Tried the 2 programs mentioned in http://rspec.info/.
>
> # bowling_spec.rb
> require 'bowling'
>
> describe Bowling do
> before(:each) do
> �...@bowling = Bowling.new
>
On Thu, Mar 19, 2009 at 4:28 AM, jazzez ravi wrote:
> Hi All,
>
> 1. Just now I installed rspec1.2.0 and dependencies
>
> 2. Tried the 2 programs mentioned in http://rspec.info/.
>
> # bowling_spec.rb
> require 'bowling'
>
> describe Bowling do
> before(:each) do
> �...@bowling = Bowling.new
>
Hi All,
1. Just now I installed rspec1.2.0 and dependencies
2. Tried the 2 programs mentioned in http://rspec.info/.
# bowling_spec.rb
require 'bowling'
describe Bowling do
before(:each) do
@bowling = Bowling.new
end
it "should score 0 for gutter game" do
20.times { @bowling.hit(