[rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati

2010-07-29 Thread Amit Jain
Hello, I recently unpacked the latest rspec and rspec rails in my applicaiton. When I run my specs I get: $ rcov user_spec.rb config.gem: Unpacked gem CVS in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. config.gem: Unpacked gem CVS in vendor/gems not in a

[rspec-users] `gem_original_require': no such file to load

2010-07-29 Thread Amit Jain
Hi All, I am getting such types of errors with rspec implementation. $ rcov user_spec.rb config.gem: Unpacked gem CVS in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. config.gem: Unpacked gem CVS in vendor/gems not in a versioned directory. Giving up.

Re: [rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati

2010-07-29 Thread David Chelimsky
On Jul 29, 2010, at 5:19 AM, Amit Jain wrote: Hello, I recently unpacked the latest rspec and rspec rails in my applicaiton. How did you unpack them (what command did you use)? When I run my specs I get: $ rcov user_spec.rb Where are you typing this command? What happens when you type

Re: [rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati

2010-07-29 Thread Amit Jain
David Chelimsky wrote: On Jul 29, 2010, at 5:19 AM, Amit Jain wrote: Hello, I recently unpacked the latest rspec and rspec rails in my applicaiton. How did you unpack them (what command did you use)? I just install rspec gem through the commands: root# gem install rspec

Re: [rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati

2010-07-29 Thread Amit Jain
Amit Jain wrote: David Chelimsky wrote: On Jul 29, 2010, at 5:19 AM, Amit Jain wrote: Hello, I recently unpacked the latest rspec and rspec rails in my applicaiton. How did you unpack them (what command did you use)? I just install rspec gem through the commands: root# gem

[rspec-users] should_receive break the method chain?

2010-07-29 Thread Zhenning Guan
class A def process @b.calculate end end it 'should change b calculate value' do @b.should_receive(:calculate) @a.process @b.calculae_value.should == 'after_calculae' end it will fail, if I comment out #...@b.should_receive(:calculate), the test pass, or if comment out

[rspec-users] Gem post-install messages

2010-07-29 Thread Mislav Marohnić
When you install the rspec-rails stack, the rspec gem post-install messages take more than 60 lines in total. Most of those messages are something uninformative like thank you for installing the rspec-blah. Um, OK. You're welcome, I guess? http://pastie.org/1061716 The rspec-rails message is way

Re: [rspec-users] Gem post-install messages

2010-07-29 Thread David Chelimsky
On Jul 27, 2010, at 1:45 AM, Mislav Marohnić wrote: When you install the rspec-rails stack, the rspec gem post-install messages take more than 60 lines in total. Most of those messages are something uninformative like thank you for installing the rspec-blah. Um, OK. You're welcome, I

Re: [rspec-users] proposition: warn on rake spec - group :test

2010-07-29 Thread David Chelimsky
On Jul 27, 2010, at 7:29 AM, Rainer Kuhn wrote: Consider putting out some information on rake spec, when rspec ist only defined in the :test group. This just cost me an hour until I read the blog post explaining it. Thing is, rake spec doesn't show on rake -T but it runs fine, just not

Re: [rspec-users] should_receive break the method chain?

2010-07-29 Thread David Chelimsky
On Jul 29, 2010, at 7:46 AM, Zhenning Guan wrote: class A def process @b.calculate end end it 'should change b calculate value' do @b.should_receive(:calculate) @a.process @b.calculae_value.should == 'after_calculae' end it will fail, if I comment out

[rspec-users] Testing controller and action with parameters

2010-07-29 Thread Anderson Leite
I have an action and I am testing it like this: The action: == def create @event = Evento.new(params[:event]) @event.aproved = false if @event.save redirect_to :action = index else render :action = new end end The RSpec test: == before

Re: [rspec-users] Testing controller and action with parameters

2010-07-29 Thread David Chelimsky
On Jul 29, 2010, at 8:37 AM, Anderson Leite wrote: I have an action and I am testing it like this: The action: == def create @event = Evento.new(params[:event]) @event.aproved = false if @event.save redirect_to :action = index else render :action = new

Re: [rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati

2010-07-29 Thread David Chelimsky
On Jul 29, 2010, at 6:37 AM, Amit Jain wrote: David Chelimsky wrote: On Jul 29, 2010, at 5:19 AM, Amit Jain wrote: Hello, I recently unpacked the latest rspec and rspec rails in my applicaiton. How did you unpack them (what command did you use)? I just install rspec gem through the