Displaying 15 results from an estimated 15 matches for "smtlaissezfair".
Did you mean:
smtlaissezfaire
2007 Mar 01
4
RC1, Rails, and problems with multiple options in spec.opts
...ib/ruby/1.8/optparse.rb:1205:in `catch''
from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!''
from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!''
from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!''
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse''
... 9 levels...
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
plugins/rspec/lib/spec/runner/option_parser.rb:180:in `parse''
from /Users/smtlaiss...
2007 Mar 01
1
Problems with RC1 & Rails Controllers
...t into my vendor/plugins directory.
I''m having a problems with controllers... I''ve generated a controller
using the ./script/generate rspec_controller MyController. When I
try to run the rake spec:controller task I get the following:
euclid% rake spec:controllers
(in /Users/smtlaissezfaire/Sites/rails/dictionary)
/opt/local/bin/ruby -I"/Users/smtlaissezfaire/Sites/rails/dictionary/
vendor/plugins/rspec/lib" "/Users/smtlaissezfaire/Sites/rails/
dictionary/vendor/plugins/rspec/bin/spec" "spec/controllers/
my_controller_controller_spec.rb" --options &qu...
2007 Jun 11
3
hpricot as dependency for building rspec?
It looks to me that hpricot is a dependency to building rspec:
euclid% rake pre_commit
(in /Users/smtlaissezfaire/ruby/projects/rspec/hpricot)
rake aborted!
Could not find RubyGem hpricot (>= 0.0.0)
/Users/smtlaissezfaire/ruby/projects/rspec/hpricot/rakefile:9
(See full trace by running task with --trace)
Let me know if I''m wrong. Otherwise, I''ll submit a patch in the docs.
Scott
2007 Mar 19
0
action_web_services error with rspec_on_rails
...controller. I can run them individually and they pass, but
running them together (either with the rake task just putting both
files on the command line):
euclid% spec spec/controllers/crud_resource_controller_spec.rb spec/
controllers/crud_resource_controller_with_join_models_spec.rb
/Users/smtlaissezfaire/Sites/rails/dictionary/vendor/rails/
actionwebservice/lib/action_web_service/container/
action_controller_container.rb:74:in `require_web_service_api'':
neither _api or _api found (NameError)
from /Users/smtlaissezfaire/Sites/rails/dictionary/vendor/
rails/actionwebservice/li...
2007 Mar 20
1
submitting a patch
...ing webgen: /opt/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27:in `gem_original_require'': no such file
to load -- webgen/plugins/tags/tags (LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require''
from /Users/smtlaissezfaire/proj/ruby/projects/rspec/trunk/
doc/plugin/version.rb:1:in `load_plugin''
from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/
webgen/plugin.rb:224:in `load_from_file''
from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/
webgen/plugin.rb:223:in `catch&...
2006 Jul 09
1
connecting to sqlite3
I''m having problems connecting to sqlite3.
Here is what my config file looks like:
development:
adapter: sqlite3
dbfile: /tmp/db/test.db
test:
adapter: sqlite3
dbfile: /tmp/db/test.db
Running migrations causes this error to be thrown:
g4:~/sites/rails/test smtlaissezfaire$ rake migrate
(in /Users/smtlaissezfaire/Sites/rails/test)
rake aborted!
no such file to load -- sqlite3
The database exists at /tmp/db/test.db. I can use the sqlite3 command
to view the tables, etc. Could this be an install problem? I''ve
installed sqlite3 with darwinports.
Scott Ta...
2007 Nov 21
22
Getting Class in Shared Behaviours
Hi,
I want to be able to get at the described class in my shared behaviour. I''m
sure an example will say it better than my words
describe "my shared", :shared => true do
it "should tell me what the class is its describing" do
how_do_i_get_the_user_class_here
end
end
describe User do
it_should_behave_like "my shared"
#...
end
So in my
2007 Jun 13
0
Using Rcov with rspec_on_rails
Running the defualt task which comes with rspec gives me the following:
=======================================================
euclid% rake spec:rcov
(in /Users/smtlaissezfaire/Sites/rails/changelog)
................................*..*..*...................*.............
...................................
Finished in 5.751487 seconds
107 examples, 0 failures, 4 not implemented
No file to analyze was found. All the files loaded by rcov matched
one of the
following...
2006 Jul 24
1
date_select and ActiveRecord find()
...n `each_cgi''
/opt/local/lib/ruby/vendor_ruby/1.8/fcgi.rb:597:in `each_cgi''
/opt/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:53:in
`process!''
/opt/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:23:in
`process!''
/Users/smtlaissezfaire/Sites/rails/miningstocks/public/dispatch.fcgi:24
Rendering /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)
Does this mean that I will have to drop down to select_date? Do only
the methods new, create, and update_attri...
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
...;rake test_sqlite"), they all pass. But when
running the individual test "base_test.rb", I obtain failures. Here
is the output:
euclid% rake -I "connections/native_sqlite3" base_test.rb
/opt/local/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /Users/smtlaissezfaire/devel/rails/subscription_manager/vendor/rails/activerecord)
rake aborted!
Don''t know how to build task ''base_test.rb''
(See full trace by running task with --trace)
euclid% ruby -I "connections/native_sqlite3" base_test.rb
Using native SQLite3
Loaded suite base...
2006 Jul 13
0
error_messages_for and seperate controllers
I''ve got two controllers, let''s call one Post and the other Comment
for simplicity, i.e.:
class Post < ApplicationController
def show
...
end
end
class Comment < ApplicationController
def create
@comment ...
end
end
In my create() method I would like to redirect back to the show method
after I have saved the comment. But If I have errors in saving the
2006 Jul 21
1
rjs template modifying form_remote_tag
I would like to build a form which uses ajax on the first request, but
on a subsequent request uses the regular form_tag. The reason for
doing this is that I need a file upload in the second request, and so
I can''t use AJAX. I''ve tried using an rjs template to modify the
form_remote_tag''s id (using page.replace ''form_tag_id'', ...), but the
request
2006 Jun 24
0
Engine Newbie: Problem w/ script/plugin discover
I would like to install The Ruby Engines plugin. So, I followed the
directions at:
http://www.rails-engines.org/download
When I run script/plugin discover, I get the following:
Add http://svn.northpub.com/plugins/? [Y/n]
(eval):3:in `each'': undefined method `[]'' for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:6
2006 Jun 28
2
Newbie question: subdirectories in app/models
For organizational purposes, I would like to create subdirectories in
my apps/model/ directory. Is there any easy way to do this while
still having the ability to refer to the derived active record class
models?
I.e.
apps/models/blog/post.rb:
class Post < ActiveRecord::Base
...
end
Post.new ...
Scott Taylor