Displaying 20 results from an estimated 600 matches similar to: "Expected response to be a <:redirect>, but was <200>"
2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
Hi. I''m upgrading a project from an 0.8.0 pre-release gem to 0.8.2.
I''ve installed the 0.8.2 gem, and the rspec_on_rails 0.8.2 plugin:
ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec
When I try to run my specs though, I get the below error. It''s as if the
spec_helper cannot find "spec/rails". I''ve noticed that
2011 Jun 01
9
Routes and Namespace
Could someone explain me how to work with routes and namespaces?
I need to understand it urgent to build an application.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/aFVOeUZzVUlsUUFK.
To post to this group, send email to
2005 Dec 17
2
Subfolders in Rails applications (newbie)
After about a week playing with Rails, I have built a couple of apps but
am still unable to get one thing to work: subfolders. (I am probably
using the wrong term here, but oh well...)
I would like my rails application to have controllers logically grouped
into folders. So for instance:
http://domain.com/accounting/accounts
http://domain.com/hr/employees
Here''s how I have tried to
2006 Nov 08
1
controller.session not same as session?
> context "A user logging out" do
> fixtures :users
> controller_name :account
>
> setup do
> login_as :quentin
> users(:quentin).remember_me
> request.cookies["auth_token"] = cookie_for(:quentin)
> end
>
> def logout
> get :logout
> end
>
> specify "should unset :user in session" do
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings,
I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup
to generate my pages. If there is a working downloadable example
somewhere, that would probably be enough. Otherwise, here''s what
I want to do:
With the following controller:
class AccountsController < ApplicationController
layout ''accounts''
model :account
2012 Feb 06
0
[LLVMdev] misc questions on opt and bitcode
On Feb 5, 2012, at 11:32 AM, Arpan Sen wrote:
> For the very simple example below, I get Unknown instruction error from lli and llvm-dis, while llc does not print anything. Not sure what is that I am missing here. My llvm-gcc version is i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
> 1-39-155-188:pastebin Babai$ llvm-gcc example.c
2012 Jan 20
3
Istalling Ruby 1.9.2
I just installed 1.9.2 on my 2nd machine, but after I installed I checked
the version with ruby -v and it sent me 1.8.7
Here''s the terminal output...anyone know what''s wrong (I have RVM
installed):
Francescas-MacBook-Air:~ fkrihely$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/src
Configuring
2007 Nov 28
6
Newbie question
I installed Rspec and am getting the following failure:
$ sudo gem install rspec
Successfully installed rspec-1.0.8
Installing ri documentation for rspec-1.0.8...
Installing RDoc documentation for rspec-1.0.8...
$ spec -v
RSpec-1.0.8 (r2338) - BDD for Ruby
http://rspec.rubyforge.org/
$ cat acct.rb
describe Account, " when first created" do
it "should have a balance of $0"
2012 Feb 06
2
[LLVMdev] misc questions on opt and bitcode
Hi Eric,
Here's the C code (example.c):
include <stdio.h>
int main()
{
printf("testing\n");
}
Here's the LLVM IR (from llvm-gcc):
ModuleID = 'example.c'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple =
2008 Oct 14
4
replace_html not working
hallo, everyone
can anybody help me? i did add my code under ENGINES as a module in a
project. before the change , all worked . and the differenz between
both is only about application''s environment,
before is
Ruby version 1.8.6 (i486-linux)
RubyGems version 1.1.1
Rails version 2.0.2
Active Record version 2.0.2
Action Pack version 2.0.2
2012 Feb 05
2
[LLVMdev] misc questions on opt and bitcode
Hi,
For the very simple example below, I get *Unknown instruction error from
lli and llvm-dis*, while* llc does not print anything*. Not sure what is
that I am missing here. My llvm-gcc version
is i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.1.00)
1-39-155-188:pastebin Babai$ cat example.c
#include <stdio.h>
void hello()
{
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
First of all, I''ve been trying to find an answer for this problem all
over the internet without luck.
The thing is that I am using RVM with ruby 1.9.2-head and I created a
new empty gemset. Then I installed bundler gem with:
gem bundler install
That installed the library into the /Users/damselem/.rvm/gems/
ruby-1.9.2-head at rails3/gems directory. Then I went to my rails 3 app
2010 Aug 27
2
[LLVMdev] What does this error mean: psuedo instructions should be removed before code emission?
On 08/27/2010 12:13, Dale Johannesen wrote:
> I don't think I believe this; emitPrologue should not be generating a
> TCRETURN at all, and line 1037 is generating a PROLOG_LABEL. Why do
> you say it's a TCRETURN?
Sorry, my bad. I have set breakpoints by MI addresses. But it turns out
that these addresses were reused and the second MIs created at these
particular addressed
2008 Jan 15
0
Problem with ruby-debug and rspec
So i''ve been getting this same thing with both rspec 1.1.1 and now with 1.1.2.
ruby-debug works with i''m in the application code, but not when i''m in
the ''spec'', or spec helper methods i''m loading. Basically any command
which should normally work like p, or pp, gets passed through to a
method_missing.
I''m kind of stumped on this
2006 Mar 10
1
Problem rendering components
I have an AccountsController that inherits from ApplicationController.
In ApplicationController I define a generic layout. In this layout I
render @title that is actually assigned in the AccountsController but
has a default value in ApplicationController.
In the layout template, I also have the standard contents_for_layout and
lastly, I have a render_component. The component called from the
2008 Feb 04
1
Error on nil.build
I can''t figure out why I am getting an error for one of the tests below:
========================
describe AccountsController, "POST" do
before :each do
@user = mock_model(User)
@account = mock_model(Account, :id => 1, :valid => true, :save =>
true, :users => mock("users", :build => @user))
Account.should_receive(:new).and_return(@account)
2010 Apr 05
1
`test': wrong number of arguments (1 for 2) (ArgumentError)
Hi,
Im trying to change the syntax of my tests to the
test "some method" do
...
end
syntax from the existing
def test_some_method
...
end
syntax. Im pasting my test code below. Im getting the error in the
subject line if I try to run the test as a ruby script from the
console.
require File.dirname(__FILE__) + ''/../test_helper''
require
2011 Aug 18
1
RSA_public_decrypt and FIPS
Does anyone knows if there is a patch for OpenSSH in order to make it work
with 0.9.8r OpenSSL in FIPS Mode ?
I'm having problem with the RSA_public_decrypt() function that is failing in
FIPS Mode, I changed it to use RSA_verify instead and setting the flag
"RSA_FLAG_NON_FIPS_ALLOW", and it's working fine now, but I'm not sure if
this is allowed in FIPS Mode, does anyone
2015 Jul 18
2
How to ssh to a server via an intermediate server with X11 forwarding?
On Sun, Jul 5, 2015 at 3:26 AM, Damien Miller <djm at mindrot.org> wrote:
> On Sat, 4 Jul 2015, Peng Yu wrote:
>
>> I tried the following command.
>>
>> ssh -Y -t intermediate -- ssh -Y dest
>>
>> But it shows the following error message. Does anybody know how to fix
>> the problem? Thanks.
>
> ssh -oProxyCommand="ssh -W %h:%p
2014 Jan 09
1
OSX - SSH agent functionality differing based upon CLI arguments
Trying to get SSH agent forwarding working for a popular open source configuration management system called Ansible.
I?ve had some unexpected behaviour, the only cause of which I can find is how I express the command line arguments.
http://stackoverflow.com/questions/20952689/vagrant-ssh-agent-forwarding-how-is-it-working?noredirect=1#comment31511341_20952689
In summarise:
In the first