Displaying 16 results from an estimated 16 matches similar to: "IE6 assigns "undefined" to _counted property when matching"
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
Note that this does not fix gettext for app,
that will be done separately in another patch
as F10/F11 require different setups for that.
In the meantime gettext works if manually changed
in environment.rb to gettext_rails instead of
gettext/rails
Signed-off-by: Jason Guiditta <jason.guiditt at gmail.com>
---
src/app/controllers/application.rb | 200 --------
2006 Nov 21
1
assigns in trunk
Hello,
I used the rspec_resource_generator to generate a set of specs, which
produces quite a few specs that contain something like:
assigns(:customer).should == @customer
running this gives the error:
wrong number of arguments (1 for 0)
./spec/controllers/customers_controller_spec.rb:23:in `assigns''
In the rspec rails plugin trunk (revision 1126), in /lib/spec/rails/
2006 Jan 20
2
Help needed using assigns() functionality in functional test
Accidentally posted this to the engines group first...dang computers :-)
I''m trying to create a functional test where the controller action (for
now, anyway) breaks apart a string and populates intermediate variables
with the results. I want to check the intermediate vars in my test, so I
tried the following
(in the controller)
def string_action
# do some processing, etc.
2006 Nov 14
0
rspec "assigns" and "render"
Hi all,
I''m trying to create some view specs using rspec following the example at
http://rspec.rubyforge.org/documentation/rails/writing/views.html
However, when I put
@person = mock("person")
@person.stub!(:name).and_return ''Joe''
assign[:person] = @person
I get a NameError saying that ''assigns'' is not defined.
Similarly, "render
2006 Mar 01
1
assigns() method disappeared from test_process.rb
I just noticed that the assigns() method has been dropped from
action_controller/test_process.rb
(http://dev.rubyonrails.org/changeset/3724). Was this an oversight or
is there a new process for working with controller instance variables?
--
* J *
~
2010 Jun 10
1
RSpec 2 equivalent for: assigns[:message].should == @message
describe MessagesController, "POST create" do
before(:each) do
@message = mock_model(Message, :save => nil)
Message.stub(:new).and_return(@message)
end
context "when the message fails to save" do
before(:each) do
@message.stub(:save).and_return(false)
end
it "assigns @message" do
post :create
assigns[:message].should
2011 Jul 06
0
undefined method `assigns' and undefined method `post'
Hi,
I have an error of undefined method.
can anyone help me to solve it.
I follow the tutorial to practicing testing controller of rails, and
now i got stuck with the error.. plz help
error:
undefined method `post'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb7754114>
undefined method `assigns'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb785d1b4>
Test file
2013 Aug 16
0
Bug#706876: xen-utils-common: network-bridge assigns addresses, breaking ifup
Package: xen-utils-common
Followup-For: Bug #706876
The problem here is that network-* scripts are fragile and prone to breakage.
Both Debian and upstream recommend configuring networking explicitly using the
normal distro mechanisms i.e. /etc/network/intefaces. See
http://wiki.xen.org/wiki/Network_Configuration_Examples_%28Xen_4.1%2B%29
Ian.
-- System Information:
Debian Release: jessie/sid
2007 Sep 11
0
[SECURITY] Winbind's rfc2307 & SFU nss_info plugin in Samba 3.0.25[a-c] assigns users a primary gid of 0 by default
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
==========================================================
==
== Subject: Incorrect primary group assignment for
== domain users using the rfc2307 or sfu
== winbind nss info plugin.
==
== CVE ID#: CVE-2007-4138
==
== Versions: Samba 3.0.25 - 3.0.25c (inclusive)
==
== Summary: When the "winbind nss
2007 Sep 11
0
[SECURITY] Winbind's rfc2307 & SFU nss_info plugin in Samba 3.0.25[a-c] assigns users a primary gid of 0 by default
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
==========================================================
==
== Subject: Incorrect primary group assignment for
== domain users using the rfc2307 or sfu
== winbind nss info plugin.
==
== CVE ID#: CVE-2007-4138
==
== Versions: Samba 3.0.25 - 3.0.25c (inclusive)
==
== Summary: When the "winbind nss
2013 May 05
1
Bug#706876: xen-utils-common: network-bridge assigns addresses, breaking ifup
Package: xen-utils-common
Version: 4.1.4-3
Severity: important
Dear Maintainer,
Executive summary: dist-upgrade - squeeze to wheezy. Rebooted machine;
no default route on network interface eth0. Commented 'transfer_addrs'
function in network-bridge produced a machine which worked after reboot.
We're using network-bridge as our xen networking configuration. After
rebooting the
2007 Apr 05
3
Extending assigns in controller specs?
Hello,
I am interested in enhancing assigns in controller specs to do
things like the following
assigns[:key1, :key2, :key3] #=> vals for keys
Is there away to "break open" this construction to overload the :[] operator?
Thanks.
-Chris
2002 Aug 07
1
ESS assigns .Last.value to the wrong place in R
I repeat my emails of 11/15/01 and 2/26/02, since it looks like this ESS bug is
still not fixed in ESS 5.1.23, and I think some resolution is needed.
When help() is invoked, ESS makes a copy of .Last.value in the .GlobalEnv,
which is *not* where R normally stores it (R stores it in package:base).
When this copy becomes stale it leads to wrong answers. The bug is in
essd-r.el, lines 63-64:
2007 Dec 13
8
stub with assigns?
is there a way to stub a method that sets an instance variable, so
the stub sets it too?
def find_foo
@foo = Foo.find(params[:id]
end
...
controller.stub!(:find_foo).and_assigns(:foo, "123")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071213/2042719f/attachment.html
2007 Sep 12
8
Can not ''assigns'' value in View test
Hello everyone:
I am quit new to View test using rspec. I want to write spec for a
partial, which is rendered by a controller. However, the controller does not
pass data to the partial using instance variables, it uses symbol variable
instead. I read the example of view spec provided in the website. But the
example is using instance variable. So I am looking for a way of assigning
my test data
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server