Re: [rspec-users] Testing Email thriugh Rspec

2010-08-20 Thread Amit Kulkarni
Ok.I will post this topic separately.. :) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Issue with parameterized shared example group on ruby 1.8.6

2010-08-20 Thread Ashley Moran
On 20 Aug 2010, at 06:40, Myron Marston wrote: describe VCR::HttpStubbingAdapters::FakeWeb do it_should_behave_like 'an http stubbing adapter', ['net/http'], [:method, :uri, :host] end describe VCR::HttpStubbingAdapters::WebMock do it_should_behave_like 'an http stubbing adapter',

[rspec-users] How do you enable verbose output from command line?

2010-08-20 Thread George
Using this command our specs run with the dot-dot-dot output: jruby -X-C -S rake spec SPEC=spec/models/trip_spec.rb But how do we make the output verbose? (To see each spec description) Many thanks, George ___ rspec-users mailing list

Re: [rspec-users] Issue with parameterized shared example group on ruby 1.8.6

2010-08-20 Thread Myron Marston
4 makes sense to me iff the code does actually run correctly in all circumstances, otherwise I'd lean towards 3. Given that ruby blocks are just code, and you can do anything you want in them, and that our faked version of #module_exec runs the block twice...it's easy to conceive of ways of

[rspec-users] Rails View spec testing for content in head

2010-08-20 Thread Michael Kintzer
Hi, Was trying to verify content in a title tag within a head tag using RSpec2/Rails3 and a view spec, but it seems that render/rendered API's only return the html within the body tag. In my case the head tag is defined in a Rails layout file, with a yield :title, and the title tag content is

[rspec-users] Testing routes

2010-08-20 Thread Bruno Cardoso
Hi, I have this route configurated in my routes.rb map.resources :accounts do |account| account.resources :managers, :controller = 'account_managers' end This works. Now, I want to test the update route in my spec: I'm doing: route_for(:controller = 'account_managers', :action =

Re: [rspec-users] Issue with parameterized shared example group on ruby 1.8.6

2010-08-20 Thread Myron Marston
1. Find a better way to fake module_exec on ruby 1.8.6. I'm not sure if this is even doable. Actually, after thinking about this some more, I think I've come up with a solution that will eliminate the error I'm seeing, but it's not a perfect solution. Let me see if I can explain this well...

[rspec-users] Testing HAML views with RSpec

2010-08-20 Thread Rafael Uchôa
Hi there, I'm using HAML for my views and I want to test them, but I got a 'Missing template' exception when I run it. I found this topic ( http://urele.com/ua6 ) where David tells to add a mapping to deal with haml, but I don't understand how I can do it (the link shows how do it with Autotest,