Displaying 20 results from an estimated 41 matches for "linoj".
2007 Oct 29
7
rake spec default environment
...nt or production) and connects to that
database, before actually connecting to the test one and proceeding
with the tests. When I remove the development database, the specs
wont run. How do i initiate rspec to be test environment from the
start? I dont see this when i run using script/spec
linoj
2007 Nov 20
4
cap deploy:spec
fyi, I just posted this
http://www.vaporbase.com/postings/Running_rspec_after_you_deploy
- linoj
2007 May 30
6
authentication mocks
hi
I''m using restful_authentication
and have controller specs working using users fixtures (and login_as)
however i''ve been trying for hours without success to do it without
fixtures, using mocks and stubs instead.
anyone here done this? got code?
:)
thanks
2007 Oct 26
2
rspec and capistrano
Hi,
has anyone here written a capistrano task for rspec to run through my
specs on the deployed server? I''d appreciate a snippet or two to get
me started.
Thx
linoj
2007 May 30
2
should_eql etc?
...be_an_instance_of, should_redirect_to, should_be_success,
should_not_be_nil, should_be_nil, should_not_be_nil, should_be_empty,
should_be_success, should_not_change, and should_not_be_activated
Is this using an old version of rspec, and/or do i need to define
these methods and how?
thanks
linoj
2007 May 23
3
log file
...e a log file generated? i''m
looking for generated sql to help me debug like in development.log
or is there a way to run the test against a webrick server so i can
see logs?
(i''m not running with spec_server at the moment, it doesnt seem to
work well with autotest)
thanks
linoj
2007 May 29
12
questions rspec on rails
...for integration testing. Have you
used that, what do you think?
- Running autotest, when a spec errors, autotest sometimes tries re-
running the test 2, 3, sometimes many more times repeatedly although
I dont touche the file again. Is this a known bug?
That''s it for now :) thanks
linoj
2007 Nov 18
9
Not sure why this is failing
I am not sure why the tests don''t see the call of the new method for the
Address class. It can be seen in the controller method where the
Address.new is called.
>> @address = Address.new(params[:address])
What am I doing wrong?
Thanks for the help.
Here is the error message:
Spec::Mocks::MockExpectationError in ''UsersController handling POST
/users should create a new
2007 May 25
4
rspec on rails update question
...oesn''t seem to exist yet, right? It
tried
$ ruby script/plugin install -x --force svn://rubyforge.org/var/
svn/rspec/tags/REL_1_0_3/rspec
svn: URL ''svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_3/rspec''
doesn''t exist
Is that the way to upgrade?
thanks
linoj
2007 Oct 02
1
flash in story runner
...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
2007 Oct 10
1
form builder
hi,
I''m creating a custom form_builder and
i''m trying to figure out how would helpers like text_field know if
the field has an error message so I can highlight it and show the
message text
thanks
linoj
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send...
2008 Nov 05
1
ambiguous nested conditions on find
...ne query?
This doesnt work, but is kind of the idea:
Comment.find :all, :conditions => {''users.name'' =>
''Cccc'', :article => { ''users.name'' => ''Aaaa'' } }, :include => [:user,
{ :article => :user } ]
linoj
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send...
2007 Dec 20
1
link to lighthouse?
fyi, there doesnt seem to be a link to rspec.lighthouse.com from the
new web site (unless I missed it). I guess I expected it under
"Community"
linoj
2008 Mar 11
1
view spec on rails questions
...ory eg
<%= render :partial => "foos/show" %>
And I put this in the spec
template.stub_render(:partial => "foos/show")
the stub gets ignored and the partial still gets rendered
It works fine with partials in the same directory
I''m runing rspec 1.1.3
thanks
linoj
2007 Oct 17
4
works in script but not in rake
...member => { :accept => :get }
...
end
but I have other resources with :member actions defined and they spec ok
This is completely repeatable.
Any ideas?
I''m running with an older version of rails edge (7310)
and the latest trunk rspec and rspec_on_rails (updated this evening)
linoj
2007 Jun 21
4
should_receive stubs methods?
Hey,
I''m using rspec and rails and have a spec that tests if a before_filter is
executed, I also have a spec that tests if a method called by the filter is
executed. It appears however that when I should_receive something, it is no
longer actually called when I fire the http request. I''m not sure how, or
where exactly I should manually fire the filter, either before or after the
2007 Jun 03
3
should_receive.again
...ethod).again.and_return(@value)
would be equivalent to
@thing.should_receive(:method).times(3).and_return(@value)
This would be helpful because I have a setup method that sets up the
should_receive once, and then some specific actions may use that
method one or more additional times.
thanks
linoj
2007 Oct 24
3
Working with the response DOM
Hi,
Anyone know a way to traverse/query the DOM in a response?
I''m trying to write reusable story step implementations and as much as
possible want to work with the actual response from a previous GET.
As an example, I often have buttons that POST/PUT a hidden value.
My goal is a reusable step implementation that takes the button label and
works the existing response DOM to make an
2007 Oct 12
6
locals in partials
hiya, in specing a partial, how can i assign a local var that is
normally passed via :locals ? i tried adding :locals => to the render
call but that doesnt seem to take
linoj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071012/fd0acd92/attachment.html
2008 Jan 23
6
sharing specs in a subclass
...that any subclass of this class also passes
the same specs.
Any suggestions for a clever way to handle this?
I''d prefer to keep the existing specs as is (eg instead of moving
everything into shared behaviors, or doing something to all the
''describe'' lines)
thanks
linoj