Thanks a lot David.
I generated a the output to xls with the command
"spec user_spec.rb --format progress:a.xls"
Under the xls it is displaying only those examples which are failing
like for e.g.
1)
'User User should not be created if email format is different' FAILED
expected: "Please check the email format",
got: ["is too short (minimum is 6 characters)", "should look like
an email address."] (using ==)
./user_spec.rb:39:
In html it looks like:
should not be created if email format is different
expected: "Please check the email format",
got: ["is too short (minimum is 6 characters)", "should look like
an email address."] (using ==)./user_spec.rb:39:37 @user.email =
"abcd"
38 @user.should_not be_valid
39 @user.errors.on(:email).should == "Please check the email
format"
40 end
Now how can i change the code so that output in xls will look similar to
html atleast passing examples should be visible
I also wanted to know how and where i should write my custom formatter?
Also it would be good if i can see some links which contains examples of
the same
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users