Displaying 20 results from an estimated 39 matches for "joshknowles".
2007 Nov 13
7
rails story runner returning a nil response code
...he Rails story runner returning
a response code of "0" when doing get/post/etc methods? I just
grabbed the latest rails/rspec and just started noticing this problem,
http://pastie.caboo.se/117497
Regular controller specs pass as expected.
--
Josh Knowles
phone: 509-979-1593
email: joshknowles at gmail.com
web: http://joshknowles.com
2007 Nov 26
8
Renaming RailsExample to RailsExampleGroup
Fyi, I made the following renames:
* RailsExample -> RailsExampleGroup
* FunctionalExample -> FunctionalExampleGroup
* ControllerExample -> ControllerExampleGroup
* ViewExample -> ViewExampleGroup
* HelperExample -> HelperExampleGroup
* ModelExample -> ModelExampleGroup
This was done to keep the naming consistent with ExampleGroup.
2007 Apr 13
3
rspec on rails won''t install
Hi:
This command:
svn co svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0/rspec_on_rails/vendor/plugins/rspec_on_rail
Gives me this output:
svn: URL ''svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0/rspec_on_rails/vendor/plugins/rspec_on_rails''
doesn''t exist
If I go the ''script/plugin install'' route, I get "Export complete."
Anybody know
2007 Apr 13
21
ZenTest autotest now handles RSpec, yay!
Josh Knowles http://joshknowles.com/ just let me know that ZenTest Autotest
3.50 now handles your RSpec specs.
http://blog.zenspider.com/archives/2007/04/zentest_version_350_has_been_released.html
That''s a great news.
Josh also shared with me a quick hack to make autotest work with only the
RSpec plugin installed.
Ad...
2007 Apr 17
3
using rake db:fixtures:load with rspec fixtures
Hi, I''m new to rspec. I have some fixtures in /spec/fixtures. If they
were in /test/fixtures they could be loaded with rake db:fixtures:load.
Is there any way other than a symlink to load my rspec fixtures into
the database with rake? Or, can I cause rspec to load the fixtures
from /test/fixtures?
Thanks,
Paul
2007 Mar 29
21
a better "should have valid associations"
This is pretty much the same as last time around, if you recall.
Thanks to Wilson for converting to the new form. I''ve added a few
lines. Basically, it iterates over your model associations and does
two things.
- First, just try to call the association. Usually fixes speeling
erors or other such silliness.
- Second, try to find a record with an :include on the association.
This
2008 May 20
5
How to write a test for validates_uniqueness_of
Hi,
I have a spec
it "should have a unique username "
I have a code:
validates_uniqueness_of :user_name
Now, I don''t know how to test this code. In order to test this, do I
need to run `save`?
For example,
@user = User.create(:username => "mike")
@another = User.create(:username => "mike")
@another.save.should be_false
This messes up test
2008 Jan 10
21
Shoulda
Hey, we''re currently using shoulda (http://dev.thoughtbot.com/
shoulda/) on a project and I saw some things that would be really nice
to see in rspec, namely the should_ methods, and especially the
should_be_restful method. Do these go against the rspec goals at
all? Or could an ambitious programmer go to town implementing these
for rspec_on_rails?
Nathan Sutton
fowlduck at
2008 Jan 16
2
rspec_on_rails_matchers
All,
Sorry for spamming this list about this but I think everyone who could
help me with this problem is on this list... If there is a better place
to post this question let me know.
Anyways, I am trying to use rspec_on_rails_matchers in my rails app to
improve my view specs but I can''t get them to work. The helpers for the
form tags never seem to be called.
I created a new Rails
2007 Apr 13
0
ZenTest 3.5 & RSpec 0.9
...ed. If you''re keeping up with Edge RSpec on your Rails
project you''ve probably just included rspec and rspec_on_rails into your
vendor/plugins directory, which by default in 0.9 will include a script/spec
command. If thats the case, and you want to use autotest, check out
http://joshknowles.com/2007/4/13/zentest-3-5-rspec-0-9-autospec where I
document what you need to add to your ~/.autotest file to make things play
nice.
Hope this helps!
Josh
--
Josh Knowles
joshknowles at gmail.com
http://joshknowles.com
-------------- next part --------------
An HTML attachment was scrubbed......
2007 Jul 09
12
Mocking User.find( :all, :limit => 10 )
Hi,
I''m trying to setup a mock for my controller test but I can''t get it to
recognise the mock.
I use
it "should find all users" do
User.should_receive(:find).with( :all, :limit => 10
).and_return([@user])
do_get
end
and in the controller
@users = User.find(:all, :limit => 10 )
But this does not work. It gives me
User expected :find with (:all)
2006 May 02
3
Mongrel on Textdrive
As anyone deployed on Textdrive using Apache + Mongrel? If so did you just
install the GEM locally?
I have filed a support request with Textdrive querying when we will see the
Mongrel GEMs installed but have received no response yet...
Thanks!
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Dec 04
1
Mailing List Modification Request
Ezra,
Is there a setting that can be changed to have the merb mailing list set the
from address as the users from as opposed to merb-devel at rubyforge.org?
Thanks!
Josh
--
Josh Knowles
joshknowles at gmail.com
http://joshknowles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20061204/bc5bb7aa/attachment.html
2007 May 29
1
TDD stats on a project
Just a thought, it would be interesting to track and graph the number
of examples (and number implemented) on a daily basis as a way of
tracking a project progress.
2007 Aug 13
1
Oracle support for rake db:reset
...rt for the
rake db:reset task. I don''t consider myself an Oracle expert by any
means, and would appreciate if someone familiar with the database can
take a look and verify that I''m going in the right direction.
Thanks.
1. http://dev.rubyonrails.org/ticket/9240
--
Josh Knowles
joshknowles@gmail.com
http://joshknowles.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this gr...
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and
I''m wondering if anyone knows of such a class for Ruby. Nothing
fancy, just perhaps a simple way of converting arbitrary XML to a
Ruby object. Maybe this has been implemented somewhere already?
Thanks,
Raymond
2007 Jun 18
0
Phoenix Rails Users Group
...rum Technogies ( http://integrumtech.com/contact) until further
notice.
The presentation should only take about an hour, after which we will be
ordering pizza and will have people on hand to help with any Rails related
problems/questions that you may have.
Hope to see you there!
--
Josh Knowles
joshknowles-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
http://joshknowles.com
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH...
2006 Aug 06
1
writing a plugin
Hi,
Does anyone know of any complete tutorials that show the basics of
writing a rails plugin?
thanks
scot
--
Posted via http://www.ruby-forum.com/.
2007 Apr 12
3
specing class methods
Here is an example from autotest:
class Autotest
def self.run
new.run
end
def new
...
end
def run
...
end
...
end
How would I spec out Autotest.run?
Two complications come to my mind:
1. How do I spec out class methods? (please point me to docs, if
any. I can only find class level specing on "partial mocks" (of
rails class objects)
2. How can I tell