Re: [rspec-users] HTTP Status 406 When Testing :json

2011-05-03 Thread Ants Pants
On 2 May 2011 14:35, Sidu Ponnappa wrote: > By the way, asserting on the response code will only help ensure that > you don't get green specs > even though you're request fails with a 406 (or something similar). > You're getting a 406 > because whatever the Accepts header is on that request > ('a

Re: [rspec-users] fields_for view spec

2011-05-03 Thread Matt S.
Chris Mear wrote in post #996234: > On 2 May 2011 00:58, Matt S. wrote: >> accepts_nested_attributes_for.) >> before(:each) do >> end >> <%= f.fields_for :owner do |owner_fields| %> >> >> class AssetController < ApplicationController >> def new >> @asset = Asset.new >> @asset.build_owner >> end

Re: [rspec-users] fields_for view spec

2011-05-03 Thread Chris Mear
On 3 May 2011, at 15:05, Matt S. wrote: > Chris Mear wrote in post #996234: >> On 2 May 2011 00:58, Matt S. wrote: >>> accepts_nested_attributes_for.) >>> before(:each) do >>> end >>> <%= f.fields_for :owner do |owner_fields| %> >>> >>> class AssetController < ApplicationController >>> def new >

Re: [rspec-users] How can I execute rspec directly from ruby code?

2011-05-03 Thread Pablo Cantero
Hi Thanks for the reply! I created the feature request ;) https://github.com/rspec/rspec-core/issues/359 >> There are some hax you can do There are way to execute? How can I do it? Best, Pablo Cantero -- Posted via http://www.ruby-forum.com/. ___

Re: [rspec-users] fields_for view spec

2011-05-03 Thread Matt S.
Chris Mear wrote in post #996461: > On 3 May 2011, at 15:05, Matt S. wrote: > @asset.build_owner >> Here is the rendered content: >>> >> a lot about other things! >> >> If you want to see everything you can do a 'git clone >> git://github.com/matthewcalebsmith/asset_owner.git' to get the

[rspec-users] Cucumber in Spanish?

2011-05-03 Thread Carmen Díaz Echauri
Hi All I'm trying to write test scenarios in Spanish with cucumber. But all my test are passing :( I haven't really used cucumber that much. Is there any setting that I'm missing. Where do I need to set that it is "es" I cannot find an example beside https://github.com/aslakhellesoy/cucumber/tree