RSpec

2 views
Skip to first unread message

Bahador Bahadori

unread,
Jun 25, 2008, 1:38:21 AM6/25/08
to malay...@googlegroups.com
hey guys, I wanna write a project using RSpec and I'm a total newbie btw,i knw how simple stuff works in BDT but whn it comes to implementing my project its like i donno anything abt it...so can u guys give me a lil heads up abt it, or any resources that may be useful during the implementation of my app, or is it possible that we can discuss this matter in your monthly gathering?

Ezwan Aizat Bin Abdullah Faiz

unread,
Jun 25, 2008, 2:40:39 AM6/25/08
to malay...@googlegroups.com

peepcode has some nice videos wrt rspec

http://peepcode.com/products/rspec-basics
http://peepcode.com/products/rspec-mocks-and-models
http://peepcode.com/products/rspec-controllers-and-tools
http://peepcode.com/products/rspec-user-stories

sadly you have to pay for them.

it took a while for me to understand rspec, but i find it much easier
to use that unittests.

similarly a useful tool i use is autotest (part of the ZenTest suite)
to test my specs automatically once a file is updated.

we can discuss rspec, but where would you like to begin? i recommend
thoroughly reading the rspec.info website.

regards,
aizat

--
aizatto - sleep, to the power of z -_-;;^zzz

Bahador Bahadori

unread,
Jun 25, 2008, 2:58:06 AM6/25/08
to malay...@googlegroups.com
how abt if we try out a not very though example, and through that we can get to knw more abt it by implementing it together with our MVCs?

Prashant Nadarajan

unread,
Jun 25, 2008, 8:31:11 AM6/25/08
to malay...@googlegroups.com
Bahador,

I'm impressed you've gotten this far ;-)

In any case, you're probably better served by asking specific
questions, say like how do I spec a particular behavior/method of the
job model. So provide some snippets of the code you're stuck at trying
to spec and perhaps the good folks on this list might just show you
how they would go about spec-ing it.

Also, don't be too rigid with writing tests, i.e. it shouldn't throw
off your release time by months just to write these tests, the end
goal, as cliché as it sounds, is to release, working code all the
better, but just release.

Cheers.

On Wed, Jun 25, 2008 at 2:58 PM, Bahador Bahadori <baha...@gmail.com> wrote:
> how abt if we try out a not very though example, and through that we can get
> to knw more abt it by implementing it together with our MVCs?
>

--
-Prashant

Ezwan Aizat Bin Abdullah Faiz

unread,
Jun 25, 2008, 2:38:40 PM6/25/08
to malay...@googlegroups.com

--

Bahador Bahadori

unread,
Jul 1, 2008, 2:58:24 AM7/1/08
to malay...@googlegroups.com
hey guys,
regarding the rspec.. when I tried to run the spec for my model: "$spec spec/models/job_spec.rb" I got an error regarding my RSpec on Rails plugin is incompatible with my installed RSpec.
but both of them are the same version 1.1.4, i installed them by:
$ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_1_1_4/rspec
$ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_1_1_4/rspec_on_rails

But when i try "$script/spec spec/models" to run the spec for my model, i can actually run the spec, "1 example,0 failure, 1 pending" but it has a warning:
"DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files." and i searched the web and i found that this option should be in config/environment/development.rb but its not..

I'd appreciate any help
regards
Reply all
Reply to author
Forward
0 new messages