search for: hobocentral

Displaying 10 results from an estimated 10 matches for "hobocentral".

2007 Jun 22
11
Nicer failure message formatting
Hi Are there any tools around that make rspec''s failure messages easier to read? unit_diff from ZenTest doesn''t seem to work - unless I missed something. A simple but very helpful improvement would be to use more line- breaks, e.g. Current output: expected "this is a very long string blah blah", got "this is a very very long string blah blah" (using
2009 Aug 29
2
Users, Roles and Permissions
Hello, I''m currently working on a text-based roleplay browser game, and i''m trying to figure out what the best approach would be in order to create a system that allows me to assign roles to a user, and permissions based upon the role a user has. I''ve been thinking about creating a model User, which has_many :roles, and with the Role model which has_many :permissions.
2007 Jun 21
3
(no subject)
Hi, Not sure if this is the right place for general questions on BDD style, but here goes... I have a class which behaves almost like a big function - you always instantiate it with a bunch of args, and call one of a couple of methods to get the results back. BDD style seems to like a separate describe block for each instantiation of the class under test. In this case that would mean a
2008 Apr 02
18
Setting up PuppetShow - Puppet's Web Interface
...et''s Web Interface" with Ruby on Rails (ROR). If somebody has setup such show, please share your experiece with EXAMPLES...I''m not the programmer.so please share your STEPS....I have setup the ROR environment, currently learning Rails with different frameworks....HOBO (http://hobocentral.net/) is great for starter and I''m trying to hack it for PuupetShow. ya let''s be "Objective-Oriented" => 1. how to setup PuppetShow? (other than http://git.reductivelabs.com/cgi-bin/gitweb.cgi/puppetshow), download the code, how to implement at my own site.? 2. How...
2007 Sep 07
1
Problem with spec -l
Hiya I used to be able to run a single example with spec -l <line-num> <spec file> But now it always just runs 0 tests when I give this option. Any ideas? Thanks Tom
2007 Jun 29
3
fixtures :all
Does rspec not understand "fixtures :all" ? If so, has it been requested? If not, can I request it? If you need a patch I can surely submit one. ;) Zach
2007 Sep 29
2
Typo3 5.0 Framework
Hi guys, for about one and half a year I am involved in RoR Development. I like the framework very much! But more and more I have my doubts, that this framework will succeed, I think Ruby on Rails succeed only, if some powers from community will be concentrated on a target-oriented development of the Framework. Since the approach of a pragmatic way of programming isn''t new anymore, more
2007 Aug 26
4
howto regressions on environment.rb in Rails projects
How would one write a spec on environment.rb in a rails app? I was requiring a gem in environment.rb, but received a "MissingSourceError". Generally, ruby raises a LoadError when it can''t find a gem, but rails overrides this to raise a MissingSourceError (since rails is expecting a required file to be in lib/...). How would I write a spec to override this behavior,
2007 Sep 08
0
rspec_on_rails - necessary to force "test" env?
Hi all rspec_on_rails/lib/spec/rails.rb starts: ------ dir = File.dirname(__FILE__) require ''application'' silence_warnings { RAILS_ENV = "test" } ------ That force into "test" environment is causing me trouble and I''ve commented it out. Why? I''m testing a plugin, and have a sort of mini rails app that I use for the specs. The
2007 Jun 21
0
Testing a Rails plugin
Hi OK it looks like I''m a convert to BDD :-) Well in principle at least - let''s see how it turns out. I''ve just set up a test environment for the Hobo plugin according to this guide: http://www.pluginaweek.org/2006/11/24/plugin-tip-of-the-week- testing-your-plugins-the-right-way/ And then adapted the setup to work with RSpec In the plugin I now have: /spec