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
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',
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
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
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
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 =
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...
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,