Displaying 20 results from an estimated 900 matches similar to: "Plugins ''speced'' with rSpec?"
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here:
http://railsforum.com/viewtopic.php?pid=25439#p25439
Don''t think it would be required to completely re-type it here :)
Thanks!
--
-Daniel Fischer
http://danielfischer.com - Geek Blog
http://abigfisch.com - Portfolio
http://writersbeat.com - Writing Community
2008 Mar 03
2
Testing Plugins + Lib Code
Hi,
I''m quite new to Rspec and I''m embarking on a new project. One thing I''m
really not sure about is how to test plugins and code in your ''lib/''
folder. Where would these specs actually live in the dir structure?
Should you test plugins by creating specs within the plugin''s dir? Or by
adding a spec to the main ''/specs''
2007 Aug 08
5
Can''t seem to spec a ActiveRecord::RecordInvalid exception properly...
1 def create
2 @user = User.new(params[:user])
3 @user.save!
4 self.current_user = @user
5 redirect_to user_path(@user)
6 flash[:notice] = "Thanks for signing up!"
7 rescue ActiveRecord::RecordInvalid
8 render :action => ''new''
9 end
I can''t seem to properly spec this out. I am trying numerous things, the
latest one is
2007 May 24
3
Annoying problem, stack error
For some reason rake spec is totally crapping out on me.
I don''t know what I did to make it break, the only thing I tried new
was install haml, but even after removing it there is still a stack
trace.
Here is what I am getting-
sparta at phalanx ff $ rake spec
(in /Users/sparta/Projects/work/idastudios/ff)
2007 Aug 09
7
Integrating polymorphic models into controllers views? how?
I''m having trouble trying to get this to work.
How the heck do you get a polymorphic controller to work? Especially
integrating it with a view?
Let''s say that we have shows, and episodes, then comments.
A show has many episodes, an episode has many comments.
the route is /shows/1/episodes/1/
Now to add a comment to that episode, how would I do it? Let''s say
that the
2007 Apr 25
9
Running specs for a plugin - undefined method ''define'' for object
I''m trying to write specs for a plugin I''m developing named audit_fu, and
I''m running into a problem which I can''t get past it. I''ve got the same
specs setup in the main rails app, and everything works fine there, it''s
just running the plugin specs that I''m having a problem with. My setup is:
- edge rails
- edge rspec (in
2007 May 25
1
RCov?
Sorry to be a newb about this, but I''m trying to integrate rcov into my
tests. I tried to follow the example located here:
http://rspec.rubyforge.org/tools/rcov.html
But to my dismay, I just don''t understand what to do. I tried to run that
task in the rspec plugins directory, but it threw an error about pre_commit.
Regardless though, I want to be able to rcov all of
2006 Nov 30
4
mongrel served from a subdirectory
Hello,
I have setup mongrel successfully a few times now, but, each time I have
used apaceh 2.2 and mod_proxy setup descibed on the mongrel site.
However, I need to set up another app in a subdomain. example.com/docserver
instead of docserver.example.com.
I have tried just adding I have something like:
ProxyPass /docserver/ http://example.com:3001/
ProxyPassReverse /docserver/
2007 Apr 10
7
Error from boot .img can not run from protected enviornment
I set up a bios update option on a PXE server, when it boots and starts to run the exe for the bios I get the error: Can not run from protected enviornment. Can any one help me reconcile this issue so I can get the bios update .img to work correctly.
Thanks for any help guys.
Thank You
BP Computer Consultants
Bryan Pershall (MCSE, Dell Certified)
IT Consultant ------
Office: 281-469-6456
Cell:
2007 Sep 08
11
changes to TextMate bundle
Hi all, I got some help from James Edward Gray II on the RSpec
TextMate bundle. For those of you who don''t know James, he runs the
Ruby Quiz and also maintains the official TM bundle.
Per a couple of patches from him and some advice that I acted on, many
of the shortcuts have changed.
The bad news is you''ll have to learn new shortcuts.
The good news is that the new shortcuts
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it''ll scope the results
to the ownership of the current_user.
It should NOT include any articles other than the articles that user owns.
How would you properly spec this out?
Thanks for the help!
2015 Aug 31
3
COLUMNS and LINES environment variables
Hello openssh developers,
Instead of just playing nethack, I've been building a client that
would log in to nethack at alt.org and using a pipe to get the login data
from pwsafe directly onto the server.
All of this works brilliantly after playing with some stty magic (full
script in [0]), however, this way the terminal size is burned into
80x24, which is way smaller than my graphical
2007 May 02
2
Virtual machines booting PXE - PXELINUX
Hello, new to the group. We have been using PXELINUX for some time now with
great success. However, with the recent spawn of virtual machines now
supporting PXE boot, has anyone been able to mount the disk in this
enviornment? Could someone direct me to any information on how to mount and
or partition drives? I have discovered the same issue with the HP DX2200
model of PC. For example if I run
2005 May 27
2
5000 sip clients (voip phones)
In a pure voip envoirnment which uses a single codec say ulaw across all its
phones can asterisk support 5000 voip sip phones on a dual / single xeon with
1 gb ram. If all the phones support reinvite (Send RTP stream directly to
each other).
Or would I need more than 1 system to support 5000 phones in the enviornment
described above.
also I am not talking about the phones using meetme or
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/.
2007 Jun 02
7
I''m really bad at controllers, help please.
Hey,
Sorry for so many questions - I''m really bad at this right now.
I''m trying to cover the following code w/ rspec
def index
if params[:user_id]
@user = User.find(params[:user_id])
@messages = @user.messages
end
end
So basically what I''m doing is listing all the messages for a user,
provided there is an id parameter.
describe
2017 Apr 21
2
Include for sshd_config
On Thu, Apr 20, 2017 at 11:00 AM, Scott Neugroschl <scott_n at xypro.com> wrote:
>
> On Wed, Apr 19, 2017 at 1:02 PM, navern <livingdeadzerg at yandex.ru> wrote:
>
>> Is there any available tool with this for pre-evaluating the resulting sshd_config for fatal errors? I'm not demanding: I'm thinking "that could be really, really useful".
>
>
2011 Jan 29
1
environment question: changing variables from a formula through model.frame?
Hello all,
I came across a behavior of R with environments that I'm not sure what is
causing it.
It involves changing variables that are found through using model.frame on a
formula inside a function.
I wonder if it's a "bug" or a "feature". And in either case, how it might
be managed.
Here is a simple example:
# let's say we have an x and y variables:
temp_x
2007 Jul 12
3
Agh, this is annoying. Why is this happening?
My problem:
Mock ''Task_1005'' received unexpected message :user_id= with (1)
No matter what I do to try to stub that out it will still fail out and give
me that message.
Here is my spec
describe TasksController, "handling POST /tasks" do
before(:each) do
@task = mock_model(Task, :to_param => "1", :save => true)
2005 Nov 30
3
wcmd crashes all the time on the set command.
Below is a crash I get on my gentoo box when I execute
the set command in wcmd. I believe the problem is
caused by wine using the entire enviornment from my
linux machine:
john@jmd0 ~ $ wcmd
WCMD Version 0.17
W:\home\john>set
ALLUSERPROFILE=c:\windows\Profiles\Administrator
ALLUSERSPROFILE=c:\windows\Profiles\Administrator
ANT_HOME=/usr/share/ant-core
CLASSPATH=.
COLORTERM=