Displaying 20 results from an estimated 20 matches for "onestepback".
2005 Mar 15
6
New Beta version of Rake for Rails Users ... Fix for Ruby 1.8.2 unit test bug
...try ...
Why?
Because it contains a workaround for the notorious Ruby 1.8.2 test/unit bug.
Using this version of rails, it should be possible to unit test a rails app
without patching the Ruby 1.8.2 test/unit library.
Where to get it?
Right now it is only available for download from
http://onestepback.org/download/rake-0.4.15.1.gem
(Note: just do a regular download using your browser, I don''t have gem server
setup on that box so a gem remote install won''t work).
After you ownload it to a local file, then run
gem install rake-0.4.15.1.gem
(admin access may be needed).
Th...
2007 Feb 20
10
ferret webpage down
The ferret webpage at http://ferret.davebalmain.com/ has been down for a
number of days. Any idea what''s going on? or how to notify the
webmaster?
--
Posted via http://www.ruby-forum.com/.
2007 Nov 04
3
Returning the mock associated with an expectation.
I was reading through the FlexMock docs and noticed the expectation
method .mock, which returns the original mock associated with an
expectation.
It looks really handy for writing nice all-in-one mocks like:
mock_user = mock(''User'').expects(:first_name).returns(''Jonah'').mock
So I started playing around with mocha and found I could actually
already do this!
2006 Jul 25
3
dynamic languages - how to leverage/make best use?
Hi,
Does anyone have any links to, or info on, how best to leverage the
power of a dynamic language. That is coming across from Java to Ruby
I''m now pondering what would be the typical scenarios where I could
actually call upon the power of a dynamic language. This info could be
in the form of best practice for dynamic language usage, or dynamic
language patters perhaps.
2005 Mar 10
0
RE: Confused about extending the login generator ''user'' [fixed]
...48, Neville Burnell wrote:
> If I comment out the ''belongs_to: user_type'' then the app runs. If I
> leave it in then I get the failure above.
This should be "belongs_to :user_type". The colon means that the
following name (here user_type) is a Ruby symbol
(http://onestepback.org/articles/tdddemo/rubysymbols.html).
//jarkko
--
Jarkko Laine
http://jlaine.net
http://odesign.fi
2005 Mar 26
2
Problem with GEM
I try the following command:
gem cleanup
and I get this:
C:\Ruby\bin>"c:\Ruby\bin\ruby.exe" "c:\Ruby\bin\gem" cleanup
ERROR: While executing gem ... (RuntimeError)
Unknown command cleanup
Even if I try:
gem cleanup rails
I get the same thing.
Anyone know what I am doing wrong?
Thanks,
Chad
2009 Feb 19
0
Can't seem to instantiate Builder::XmlMarkup.new?
...ler to fail when it opens. I''ve locally
installed the ''Builder'' gem although this doesn''t exist in my Linux
stack and runs fine. Here''s the details on the GEM I installed;
gem = "Builder" by jim-Fxty1mrVU9GlFc2d6oM/ew@public.gmane.org at http://onestepback.org/
Does ActiveRecord ( as of 2.2.2 ) now have this feature? If so, why
can''t my controller create an instance of this class?
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q...
2006 Mar 08
1
Poor Man''s Continuations
Hi List,
I''m a new rubyist and railist, and my web-dev background is php, where
I used and contributed to the WACT framework.
Continuations are dead cool aren''t they. As I understand it, the
problem with having them in rails is that marshalling them isn''t
feasbile, so in a stateless environment, they can''t be easily
implemented. (Is this correct?)
My idea
2005 Aug 22
1
XML Builder question (Brain Teaser? or At A Total Loss?)
I''m trying my best to get Builder to give me a nested representation
of my nested database tables, but I think I''m not getting any closer
to a solution. In fact, now I''m in Syntax Error land, rapidly
approaching Missed Deadline country. Perhaps you could be the one to
save my ass?
Basically, I have Images which have many Options (intended to
represent
2005 Mar 08
3
Chapter Numbering in Hieraki
...contents in the left hand margin has the correct
(1-3) numbering.)
Is this a bug, or some strange functionality I don''t understand.
(And is there a better place than this list to raise Hieraki issues?)
Thanks.
--
-- Jim Weirich jim-Fxty1mrVU9GlFc2d6oM/ew@public.gmane.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
2008 Jan 02
2
Proxies
...hod calls.
> > I haven''t run into a testing situation where I''ve needed to test the
> > ordering of calls on a mock explicitly, but flex mock provides a
> > grouping mechanism.
> >
> > For the corollary in FlexMock, check out #ordered
> > http://onestepback.org/software/flexmock/classes/FlexMock/Expectation.html#M000082
> >
> > Don''t take me too seriously, but I think mocha could trump flexmock''s
> > with something like:
> >
> > mock_user = mock(''User'') do
> > initially.expects(...
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple
authentication, and its been working fine.
Now I want to extend it by simply adding ''type_id'' field which links to
my ''user_types'' table, but I''m hitting:
#<ActionController::SessionRestoreError: Session contained objects where
the class definition
2006 Mar 17
0
Installed Gems on godaddy.com
...bluecloth.rubyforge.org/> BlueCloth is a
Ruby implementation of Markdown, a text-to-HTML conversion tool for web
writers. Markdown allows you to write using an easy-to-read, easy-to-write
plain text format, then convert it to structurally valid XHTML (or HTML).
*builder 2.0.0* [www] <http://onestepback.org/> Builders for MarkUp.
*cmdparse 2.0.0* [www] <http://cmdparse.rubyforge.org/> Advanced command
line parser supporting commands
*diff-lcs 1.1.2* [www] <http://rubyforge.org/projects/ruwiki/> Provides a
list of changes that represent the difference between two sequenced
collec...
2005 Aug 18
10
Scaffolding, DRY and RHTML
Hello all, I''m working on a couple of Rails projects at the moment and
have noticed something that seems to go against the DRY principal.
Why, when scaffolding, are individual CRUD rhtml files created instead
of using one as a partial and having the others use that single
partial? This especially applies to the list rhtml. I am about to get
to the other operations and see how feasible
2006 May 23
14
Learn Ruby before Learning Ruby on Rails ?
hello Friends,
I am a newbie to "Ruby or Ruby on Rails". A J2EE application architect
at my day job. A fairly experienced PHP web-developer as well. After
reading into the many articles on Ruby/ROR, have to admit looks pretty
good so far. Really serious about getting into this and possibly
developing some good Web 2.0 applications.
Just wondering the best way to learn Ruby on
2005 Mar 15
15
Web-based Ruby Syntax Highlighter
Hi all,
Last night, I wrote a web-based syntax highlighter that takes Ruby and
produces nice HTML of the code, ready for including on web pages, or in blog
posts, or whatever. I don''t know how useful it will be for other people, but
feel free to use it. Anyway, the URL is :
http://syntax.carldr.com/
Any comments/suggestions would be gratefully received. Enjoy!
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...egular ERb
ones. The only thing that differentiates them is the extension. No new
methods have been added to the public interface to handle them.
Action Pack ships with a version of Builder, but it will use the
RubyGems version if you have one installed.
Read more about Builder on:
http://onestepback.org/index.cgi/Tech/Ruby/StayingSimple.rdoc
[Builder is created by Jim Weirich]
* Added much improved support for functional testing [what-a-day].
# Old style
def test_failing_authenticate
@request.request_uri = "/login/authenticate"
@request.action = "authenticate&...
2007 Sep 16
12
rspec_todo -- spec''ing backwards
While the spirit of BDD is to spec first and code second, many of us
have legacy code. Worse, some of us have legacy code without very
good coverage. Recognizing that *I* have such code, I created a
script that grinds through your .rb files and creates placeholder
specs for each public method.
While it is more sensible to spec behavior of code function than of
individual methods, this
2007 Dec 07
4
strange error on mock proxy
I''m banging my head over this really strange error in a view test when
I run "rake spec". The weird thing is that I don''t get the error when
I run the spec file by itself.
Here is the spec (I know, fixtures are the devil):
describe "/units/new.html.erb here" do
fixtures :units, :accounts, :groups
it_should_behave_like
2006 Jan 22
23
calculate users age
i know it''s probably really simple, how do i work out someone''s age if i
have their d.o.b. stored as a date in my db.
cheers
--
Posted via http://www.ruby-forum.com/.