Displaying 20 results from an estimated 200 matches similar to: "response.should have_text leads to undefined method `has_text?'"
2007 May 19
2
have_text matcher does not support should_not.
Hello Guys,
Doing conversion of some test for some controllers, still with integrated views.
Anyway, I have this:
it "should not see Join This Group button on profile page as member" do
get "show", :id => @group.id
response.should be_success
response.should_not have_text(/Join This Group/)
end
But running with spec (0.9.4), drop me the folling error:
2008 May 08
2
Testing render :text without has_text
A controller I''m trying to test simply delivers a text string to the
client, which then demarshalls it to retrieve some objects. I want to
test that the returned string is correct.
I don''t want to compare the string character-by-character with
response.has_text because that ties me to the implementation of the
Marshall class. Instead, I just want to demarshall the string
2008 Dec 10
3
rspecing rjs - form.reset(''form'')
Hello,
>
> I couldn''t find much info on this.
>
> How do you rspec this: page.form.reset("form")
>
> I looked in the have_rjs source code and I can''t find anything on form
> reset.
>
> Thanks,
>
> --
> Andrei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Oct 05
13
spec''ing view render partial collection, local variable not found
I''m trying to spec out a render partial collection but I get the following
error
2)
NoMethodError in ''/games/_game.rhtml should show game name''
undefined method `body'' for #<#<Class:0x316580c>:0x2f1154c>
/Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in
`matches?''
2006 Sep 18
1
PHP Dingus Fix
I just realised I hadn't updated the version of PHP Markdown and
Extra on the dingus as I pretended I did in my two announcements. It
is now fixed: PHP Markdown 1.0.2b7 and PHP Markdown Extra 1.1b1 can
now be tested on the dingus.
<http://www.michelf.com/projects/php-markdown/dingus/>
Sorry for any inconvenience.
Michel Fortin
michel.fortin@michelf.com
http://www.michelf.com/
2007 Sep 25
7
simple story, extract link
hi,
I just started fooling around with story runner, thought I''d start
with a dead simple scenario:
The first thing I do when describing a site to someone is go to the
home page, and begin exploring public pages from there.
So, that seems like a good first story to spec out.
And I''d really like to extract the actual link from the rendered page
(rather than just
2011 Jul 20
2
Variable assigned to grep output - missing letter n!
This is kind of odd.
[scarolan at host:~]$ cat loremipsum.txt
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis
ipsum sed elit laoreet malesuada. Quisque rhoncus dui vitae eros
euismod fermentum sollicitudin sem scelerisque. Nulla facilisi.
Maecenas mollis pulvinar euismod. Duis viverra pharetra turpis eget
feugiat. Nulla facilisi. Nullam facilisis, felis vitae lacinia
2007 Oct 16
6
RailsStory runner - empty response
I generated a new rails app then installed rspec and rspec_on_rails from
trunk.
I then created a sample story:
require File.dirname(__FILE__) + "/helper"
Story "View Home Page", %{
As a user
I want to view my home page
So that I can get a birds eye view of the system
}, :type => RailsStory do
Scenario "Publisher with no videos" do
When
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
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,
2010 Oct 04
1
Splitting a DF into rows according to a column
Hi,
I'm turning my wheels on this and keep coming around to the same wrong
solution - please have a look and give a hand ...
The premise is: a DF like so
> loremIpsum <- "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quisque leo ipsum, ultricies scelerisque volutpat non, volutpat et nulla.
Curabitur consequat ullamcorper tellus id imperdiet. Duis semper malesuada
2008 Oct 27
1
replace a few strings in a text file
Dear all,
I wrote a wrapper to a FORTRAN program using R. The main program uses
a text file (~200 lines) as an input describing the simulation to be
run. I typically generate the file once with the right parameters
using a combination of file(), paste(), cat(). This is fine, and it
works well, however I then need to update only a few values in the
file many times (~200 times,
2008 Apr 11
4
request.params causing errors
Hello,
I have a rhtml file that goes through the request.params. One of my test
generates that file, but rspec pops an error saying :
undefined method ''params'' for ...
I''m not sure what to do with this, since request.params actually works with
rails.
Any idea?
Thank you
Olivier Dupuis
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned
from github... there isn''t any .gemspec file or rake task that does
this. Any help?
--
Posted via http://www.ruby-forum.com/.
2006 Nov 29
2
Dummies multiplied with other variable
Hi,
I would like to estimate something like y = a + b*d2*y + c*d3*y where
the dummies are created from some vector d with three (actually many
more) levels using factor(). But either there is included the variable
y or d1*y. How could I get rid of these?
Example:
x = c(1,2,3,4,5,6,7,8)
y = c(3,6,2,8,7,6,2,4)
d = c(1,1,1,2,3,2,3,3)
fd = factor(d)
lm(x ~ fd*y)
gives:
Coefficients:
(Intercept)
2007 Oct 02
1
flash in story runner
hi,
is there a way to assert a flash message directly in story runner? Or
do I have to go through the response text instead.
Then "flash message should say success" do
#flash[:notice].should == "User successfully invited"
response.should have_text(/User successfully invited/)
end
linoj
2009 Jun 11
5
HELP SAMBA + LDAP
Hello everybody,
Please does some one have any "documentation", "tutorial", "how to" about
setting up a PDC basing on Samba with a LDAP (OpenLDAP) backend ?
I really need it for my studies end project
thank you very very much for your help
--
Samir RHAOUSSI
ENIM 2009
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Jun 11
5
HELP SAMBA + LDAP
Hello everybody,
Please does some one have any "documentation", "tutorial", "how to" about
setting up a PDC basing on Samba with a LDAP (OpenLDAP) backend ?
I really need it for my studies end project
thank you very very much for your help
--
Samir RHAOUSSI
ENIM 2009
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 09
4
Theme wanted for new Rails CMS
Hi all,
I just finished building a CMS (open source, MIT license, same as RoR)
that is aimed at people with portfolios: graphic designers,
photographers, web developers, etc. Since this fits the Rails
demographic well, and I plan to continue actively developing the
project, I expect it to be a hit. Some features:
* 100% semantic XHTML
* Built on Ruby on Rails
* AJAXified administration
*
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is
in progress, where could I start to try and build one?
JD