similar to: Problems translating should_render from 0.8.2 to 1.0.5

Displaying 20 results from an estimated 200 matches similar to: "Problems translating should_render from 0.8.2 to 1.0.5"

2006 Nov 07
7
should_redirect_to in advance - feels unnatural
I can understand that it''s easier for rspec to set up a mock in advance of the controller call. But it makes it difficult to do something like: context "The HarkController, given Louie the logged-in user" do setup do post :login, :username => ''louie'', :password => ''atest'' end specify "should redirect Louie to the home
2007 Apr 09
10
changes in 0.8 and greater - should_
Has the should_... syntax changed? I''m getting errors when running the following: should_render(:index) should_be_valid should_not_be_valid should_respond_to should_be should_render I thought the syntax changed to something like the following: obj.should render(:index) but this doesn''t seem to work. Scott
2007 Sep 08
3
template.expects_render?
Hi All, I''m trying to make use of template.expects_render, is outlined in David''s post(http://blog.davidchelimsky.net/articles/2007/06/28/ template-expects_render). I get an undefined method error on expects_render. I made sure I had the 1.0.8 gem as well as reinstalling the plugin and redoing the bootstrap. Still no luck. So I created a clean project, installed the
2006 Nov 21
1
Documentation Nit
I''m trying to wrap my head around rspec_on_rails and ran into the following documentation nit: -------- what it says -------- You can specify :template, :text, or :action. controller.should_render :template=>"path/to/template/for/action" controller.should_render :text=>"expected text" controller.should_render :action=>"expected_action" --------
2007 Jun 12
3
rspec 1.0.x and liquid?
Is anyone else using liquid with the > 1 rspec? This seems to fail: it ''should render show'' do response.should render_template(''buyers/show'') get :show, :id => 1 end with an error like 1) NoMethodError in ''/buyer GET should render show'' You have a nil object when you didn''t expect it! The error occurred
2006 Apr 08
6
How to set busy
For multiline phones how do you set SIP channels to busy. For instance if SIP/101 is on a call then dial would return busy. Right now it just starts ringing on line X, and stacks up from there. What would be really great is if I could control how many calls by the context. So if a call was routed via [overload] Then the ext wouldn't report busy it would just keep ringing available
2007 May 26
11
RSpec
Hi RSpec Mailing list, I''m new to RSpec and I am trying to get it running with the caboo.se sample rails app. I installed the current version of rspec with rspec_on_rails I tried to run rake spec but received: 330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake spec (in /Users/multimedia/Desktop/restful_auth_rspec)
2005 Jul 07
1
4GB limit on samba 3.0.4
Does anyone know anything about a 4GB size limit on Samba 3.0.4 running on AIX 5.2 with a 32-bit kernel? We currently have files being transferred from a Windows 2000 server to an AIX machine, and if the files are larger than 4GB, they are getting mangled. Running samba at a high debug level shows the file pointer rewinding or becoming negative once it reaches 4GB and md5sum indicates that the
2007 May 21
4
Just upgraded to 1.0.0, should render_text isn''t working for me
I finally got around to upgrading from 0.8.2 (!!). I had a spec which looked like specify "should render abc123" do controller.should_render :text => "abc123" get :key end With 1.0.0, the new spec is it "should render abc123" do get :key response.should render_text("abc123") end However it doesn''t work, giving me the error: undefined
2009 Jul 20
9
rake error
When I run rake test:units I get this error: 292 tests, 350 assertions, 2 failures, 13 errors rake aborted! Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/ usr/loc...] This error just showed up yesterday --- I have no idea how I caused it. Here is my gem list in case that helps: actionmailer (2.3.2, 2.2.2) actionpack (2.3.2, 2.2.2) activerecord (2.3.2, 2.2.2)
2006 Mar 28
3
dial plan logic
Just starting to enjoy the full features of asterisk, I do have a couple questions though, that I can't seem to find answers for in the wiki, just wondering if someone could light my way. after a caller has made their choice of options in the dial plan, I would like them to be placed on "hold" (music, not ringing) while the system processes through the rest of the dial plan
2006 Apr 07
2
Attended Transfer howto
There is plenty of information on the wiki for setting asterisk up for transferring calls both from the Dail() command, and features.conf. What really seems to be missing, is simply how do you actually perform the transfer? Blind transfers are pretty simple as you only have two obvious steps. How though do you do attended transfers? 1.) You have a call 2.) You dial *2 or whatever you have
2007 Apr 09
7
RCov results seem to include the spec files
I saw the RCov page at http://rspec.rubyforge.org/tools/rcov.html and decided to add it to my project. My rakefile looks like this: require "rake" require "spec/rake/spectask" desc "Run all specs with RCov" Spec::Rake::SpecTask.new("spec:rcov") do |t| t.spec_files = FileList["spec/**/*_spec.rb"] t.rcov = true end When I run rake spec:rcov,
2007 Mar 28
1
extracting common methods out of specs
I have several specs which do more or less the same thing: describe "GET /users/1/terms" do controller_name :terms def do_get get :index, :user_id => 1 end it "should be successful" do controller.should_render :index do_get end ... end How could I extract this functionality from each spec? Scott
2007 Feb 15
4
defining context(s) dynamically
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Q. Why does code which defines a context work in the
2006 Mar 31
1
incoming triggers seperate outbound
Hey, I would like in the course of dial plan logic, to trigger a separate outbound call. If that outbound call is answered, and if that certain key response is detected then it will bridge the incoming call to the newly dialed outbound call. What I want to accomplish is that when a caller dials in, they can enter enter an extension that will call out to a callee's cell phone. When the
2006 May 25
1
pap2 bridging problems
I'm having a real problem with one of my linksys pap2. On outgoing calls the callee will ring, but caller (pap2) will not here it ring When the callee answers, no audio is transmitted either way. Asterisk reports the call connected and bridged correctly. Now the kicker is that sometimes it works and other times it doesn't. I have had the most luck calling land lines, but sometime
2006 Jun 15
1
d & e options in meetme()
I'm really confused on how to use these two options together: A while back: JustRumours edited this page: http://www.voip-info.org/wiki-Asterisk+cmd+MeetMe and added a little section about dynamic conferences. the 'e' option is repeated all over the page as the savior of dynamic conferences, maybe I'm just dumb, but can someone tell me if a conference is created with the e
2007 Aug 13
1
expect_render not?
hi, I have a template that conditionally renders a partial. Is there a way to test that a partial is NOT rendered? :)
2005 Jul 06
1
Samba 3.0.13 ADS domain member on AIX 5.2
All, I'm trying to figure out if I missed some steps in configuring Samba 3.0.13 on AIX 5.2 as a Windows 2003 ADS domain member server of the domain DEVELOPMENT. Samba is compiled with Heimdal Kerberos and openLDAP support, and I successfully joined the ADS domain using net ads join after running a kinit. Kerberos appears to be working, wbinfo -u and wbinfo -g work; net ads status works