similar to: is assert_select_rjs deprecated in Rails 3.1 ?

Displaying 20 results from an estimated 100 matches similar to: "is assert_select_rjs deprecated in Rails 3.1 ?"

2007 Feb 06
0
assert_select_rjs with on a page with "page.select" in it
I''m having a bunch of testing an RJS action. The action updates a DIV if it exists, but it isn''t always necessarily present on the page so I use a page.select in the RJS to check if it exists. (Is there a better way to do that?) Let''s say we have an RJS page containing: page.select("some_element_that_may_or_may_not_exist").each do |value|
2007 Jun 15
2
Is it still possible to use should_have_rjs
Hi I''ve come back to a Rails project after about a month doing other work, and there''s a lot of changes. I was on the 0.7 branch before and I''ve upgraded to RSpec 1.0.5. I used the spec translator, fixed the cases where it barfed on unusual line contents, and all my model and controller specs now pass. But I''m getting 53 failures on my view specs,
2008 Apr 01
2
Functional Testing - page actions
Pretty simple question, I''ve tried to ajaxify some actions and the first one I did was a delete - def delete_job ..... render :update do |page| page.remove "job_#{id}" end .... end and in my functional test I call this function via post def test.... post :delete_job, :id => 1 assert_response :success ...... end after the assert_response, how do I test that the page
2013 Feb 14
6
Direct I/O support (patches included)
Hi, Since a --direct-io feature was requested a few times the past decade with little response and the actual patch is quite trivial, I patched both v3.0.9 and master branch and included the patches here. If this functionality is acceptable I don't mind spending the additional effort to update the documentation, etc. Beware that the underlying filesystem needs Direct I/O support,
2007 Oct 25
0
specs for RJS
What''s the current best practice for spec''ing (and stubbing) RJS? response.should have_rjs(*args, &block) from rspec_on_rails works well for things that assert_select_rjs supports. But for other things, like say page[:elm].add_class_name :class_name, it''s not clear to me the best way to test for this. I''d love to be able to do something like
2011 Mar 09
1
ActiveRecord serialize method not returning YAML array in test environment.
Hello, I''ve got a problem with deserialization of AR "serialize" method (http://apidock.com/rails/ActiveRecord/Base/serialize/class) in my tests. It just gives me pure String instead of my data Array. Example: User > AR::Base serialize :roles, Array end Console: u = User.new u.roles = ["admin", "support"] u.save # => true User.first.roles # =>
2017 Apr 04
2
Code inconsistency between release version and git in rsync-3.0.9
There are huge differences between source files in the version 3.0.9 released as a tar.gz and source files in git. I would assume that the released version would correspond to the version in git but with 3.0.9 it is not like that. In 3.1.0 the released and git versions are more or less the same. So my question is, from what source files was the 3.0.9 version created? Thank you. Regards, Michal
2012 Nov 16
2
Problem Backup Maildir to NTFS
Dear Sirs, I need to make a backup of email accounts (Maildir) a Linux server to a Windows server with NTFS, but get the following error: rsync: rename "/mnt/rsync/cur/137D94_29.ml110c.qnet.com.pe,S=32828:2,S.M92y5w" -> "cur/137D94_29.ml110c.qnet.com.pe,S=32828:2,S": Invalid argument (22) I have installed Rsync v3.0.9 The command is executed: rsync -rltDvu
2010 Sep 17
1
option_groups_from_collection_for_select
Hi, in my development environment (Ruby 1.87, Rails 2.3.8) the following code works fine: <%= select "applicant", "member_1", option_groups_from_collection_for_select(@topics, :members, :topic, :id, :name, @applicant.member_1), {:include_blank => true} %> Producing: <optgroup label="Clinical Neuroscience"> <option value="1">Prof
2012 Jun 04
1
How to save the user_id in a separate column when using ActiveRecord::SessionStore?
Hi! I''m converting my Rails 3.1 app from cookie sessions to database sessions. I''ve added an extra column on the sessions table to save the user_id. I read the documentation in http://apidock.com/rails/v3.1.0/ActiveRecord/SessionStore and googled but can''t seem to find a way to set the session''s user_id that works. Can someone help? Thanks -- Posted via
2004 Dec 13
2
compile samba v3.0.9 vfs-errors
Hello NG, found a thread with almost my current problem. There wasn't any solution out there. Maybe anything has changed? I want install samba v3.0.9 on an old rh linux v7.1. Currently there's no chance to update the core system. But while compiling it breaks with many "vfs"-errors as shown below: ..SNIP.. modules/vfs_shadow_copy.po(.text+0x6e2): undefined reference to
2012 Jul 17
6
Database connection parameters are tied to the filesystem
HI Guys, I recently tried VERY hard to override the database configuration bassed on ENV vars or actual API calls. This task is almost next to impossible. I know that the database.yml file is parsed as ERB but that is sane for simple ENV replacement if you want to actually change which database adaptor it is (requires extra config/params) it becomes messy. I found
2007 Dec 20
3
How-to spec this helper method?...
Hey gang, I have this dead-simple method defined in a helper: def add_category_link(name) link_to_function name do |page| page.insert_html :bottom, :categories, :partial => ''category'', :object => Category.new end end Where, and mostly how, would I spec this? I haven''t been able to find how to stub the rjs in a helper spec, so
2013 May 19
1
Any plans for a 3.1.0 release(-date)?
Hi If i'm reading git right(git log v3.0.9..) the development branch that will eventually result in 3.1.0 is nearly 5 years "in the making". Personally i'm anticipating the fallocate support, as XFS is great at preallocateing (fallocating even a several gigabyte big file only takes milliseconds) which reduces fragmentation especially when the copy operation takes time.
2013 Mar 24
6
forgery protection for multiple browser tabs
Hi, http://apidock.com/rails/ActionController/RequestForgeryProtection only maintains one CSRF token at a time. When a user visits some site, he gets a new token in the session. He then might open a linked site of the same rails app in a new browser tab (maybe some info he''d like to read), and again he will get a new token. Then he changes to the first tab again and submits a form
2011 Feb 04
5
Date parse - month and day reversed
I am getting the month and day reversed in parsing a date. I am wondering if there is some intelligence in Ruby that knows that at the moment I am in Mexico, as the parsing is working as if I was "6/15/2008".to_date => ArgumentError: invalid date "15/6/2008".to_date => Sun, 15 Jun 2008 What I really want is my date to be understood as month/day/year. Is there a way to
2009 May 23
9
undefined method `assert_select'
I''m having trouble getting the specs to run for a plugin where I want to fix a bug. (I''ve actually already found and fixed the bug, but I don''t want to submit a fix without a test!) When I started the specs weren''t running, but it may be that I''m using Rails 2.3.3 and the plugin has been tested on 2.1 and earlier. I went through writing a spec for a
2005 Mar 10
2
Strange issues with Excel & Samba
I have a client who used to have an NT server, we replaced it with Gentoo Linux and Samba v3.0.9 and they are now having what appears to be some sort of file-sharing issue with Excel. When a user opens an Excel file on the file server it opens properly, no errors or warnings of any kind. But when they try to save the file, Excel warns them that "the file may have changed by someone
2006 Mar 02
2
url_for_file_column not returning correct path
I added this test towards the end of the included file_column_helper_test.rb that shipped with the file_column plugin: def test_url_for_file_column_different_root_path Entry.file_column :image, :root_path => File.join(RAILS_ROOT, "public/files") e = Entry.new(:image => upload(f("skanthak.png"))) assert_match %r{/public/files/entry/image},
2011 Jan 11
9
Can I omit respond_with.
If I don''t want xml results but only html can I omit respond_with in some actions? For example index from: respond_with(@sectors = Sector.all) becomes only @sectors = Sector.all isn''t it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to