Andrew WC Brown wrote:
> I'm going through Peepcode's Rspec Basics for an overview.
>
> He's just doing a simple spec:
>
> class PeepCode
> end
>
> describe PeepCode do
>   it "should be awsome" do 
>   end
> end
>
> So running spec spec/simple_spec.rb should produce according to his 
> screen cast:
> 1 example, 0 failures, 1 not implemented
>
> but I only recieve:
> 1 example, 0 failures
>
> Also spec spec/simple_spec.rb --format will fail
> /usr/local/lib/ruby/1.8/optparse.rb:451:in `parse': missing argument: 
> --format (OptionParser::MissingArgument)
>
> RSpec 1.0.8
> ZenTest 3.6.1
Don't you have to omit the block, 'do'...'end' when you want them to be 
not implemented? Or, you can use 'pending' method in the block like this.

describe PeepCode do
  it "should be awesome"
end

or

describe PeepCode do
  it "should be awesome" do
    pending("supposed to be pending")
  end
end

Cheers,

Semin
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to