You can use an empty block instead:
===begin Ruby
describe Apple do
it "should be delicious" do
# real test
end
it "should be crunchy" # still pending
end
===end Ruby
Then you'll get:
===begin shell
Apple
- should be delicious
- should be crunchy (PENDING: Not Yet Implemented)
===end shell
Hope that helps.
--
John Feminella
Principal Consultant, Distilled Brilliance
On Wed, May 26, 2010 at 14:07, Nadal <[email protected]> wrote:
> I wrote following code and it did not work.
>
>
> describe User do
> it { should validate_presence_of(:email) }
> pending "should raise an error when email is blank and record is
> saved with false option"
> end
>
>
> Then I put pending inside it like one given below and it worked.
>
>
> describe User do
> it { should validate_presence_of(:email) }
> it "" do
> pending "should raise an error when email is blank and record is
> saved with false option"
> end
> end
>
>
>
> I know that rspec is well thought out . Then why rspec is forcing me
> to put empty it around pending line. Why can't I just say that
> something is pending and I will get to it later.
>
> Thanks for all the good work.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users