search for: port001

Displaying 12 results from an estimated 12 matches for "port001".

2007 Jun 18
6
Something like rcov but more explicit?
Hey list, Does anything exist that can show me which lines are explicitly tested? RCov is great, but it doesn''t really give a sense of _actual_ coverage, indeed, there is no guarantee that functions executed were in fact called as the result of a line being tested. I know nothing of the rspec internals, but would a simple list of executed lines be a relatively simple feature to add?
2007 Jun 21
4
should_receive stubs methods?
Hey, I''m using rspec and rails and have a spec that tests if a before_filter is executed, I also have a spec that tests if a method called by the filter is executed. It appears however that when I should_receive something, it is no longer actually called when I fire the http request. I''m not sure how, or where exactly I should manually fire the filter, either before or after the
2007 Jul 25
5
MockCov: Proof of concept
Hey list, RSpec is great, I''ve been using it at work for a couple of months now. One gripe I have is that I find it hard to know exactly to what extent my code is covered by the specs. I am aware of RCov and Heckle; they''re great, but I''d like to demonstrate another perspective of coverage analysis I''ve hacked up. The perspective is that of what is mocked and
2007 Jun 27
1
rspec_on_rails: assert_select wrapper doesn''t play nice with XML
Hey, I''m using rspec and rspec_on_rails to test some RSS feed views, the problem is that the specs spew out messy warnings when they run: ignoring attempt to close channel with link opened at byte 61, line 3 closed at byte 141, line 5 attributes at open: {} text around open: "ss version=\"2.0\">\n <channel>\n <title" text around close:
2006 Jul 04
1
redirect being performed on server when via AJAX call?
Hi, I''m having a hard time understanding why when I make a request via an AJAX call that triggers a redirect, the redirect seems to be performed by the server and the response of that subsequent request is the one sent back to the client. I am aware I can send back JavaScript in the response to perform the location change rather than a redirect but I''d like to have the 302
2006 Jul 05
0
Creating URLs like Wikipedia.org
Anyone know of a utility that creates URLs similar to those used on Wikipedia and such sites? (foo.com/URLs_Like_This). I could quite easily do this with gsub and/or some regular expressions, but I''d rather used a tried and true function just incase I miss something important. Cheers Ian -- Posted via http://www.ruby-forum.com/.
2007 Sep 14
0
ProfileFormatter (Top 10 slowest examples)
Hey list, The time it takes for my specs to run is starting to get a little long (~45 seconds), and annoying enough for me to do something about it. I''ve written a simple formatter that prints out the top 10 slowest examples in an attempt to identify any low hanging fruit amongst a spec suite.
2011 Nov 12
1
Using require_relative to speed up rspec require time.
Hi, I noticed recently that require ''rspec'' on my machine was taking close to half a second. That''s not a huge amount of time, but it is still the single slowest part of my test suite. It boils down to Ruby 1.9''s rather slow require. I''m using 1.9.3, but I''d still like to shave off some of the require time. As an experiment, I went into
2006 Sep 03
0
Plugin: modules or generators?
Hi, I''m writing a plugin (my first) that adds question validation support (alternative to captchas). I''m obviously gonna need to provide a generator for the migration of the questions table, I''m just not sure if I should generate the model too or just leave it in the plugin. If I do leave the model in the plugin then won''t I also have to hardcode to table name
2006 Oct 13
0
Boogaloo Simple Cache Server 0.1
Hey list, I''ve just released a new project called Boogaloo. It''s a simple cache server that provides persistent and temporary caching, you can also use it to house your own custom services. The main release announcement is over on ruby-talk (sorry for those reading this twice). I''m posting it here too as although Boogaloo isn''t specific to Rails, I did create
2009 Dec 08
0
ActiveSupport 2.3.5 and json 1.2.0 gem
Hey, I''ve tried every trick I can find, yet I''m still unable to get the json gem and ActiveSupport to play nice. No matter in which order I load json and active support, I still end up with: NoMethodError: undefined method `[]'' for #<JSON::Ext::Generator::State:0x104b7fac0> I''m trying to use the JSON object directly, *not* as a ActiveSupport backend:
2007 Jun 15
1
Problems with RCov and Rails
Hey list, I''m trying to use the rcov integration that rspec provides in my Rails application. As per the documentation on the website, I''ve created the following rake task: lib/tasks/specs_with_rcov.rake: require ''spec/rake/spectask'' desc "Run all specs with rcov" Spec::Rake::SpecTask.new(''specs_with_rcov'') do |t| t.rcov = true