Displaying 20 results from an estimated 7000 matches similar to: "HostName not quite working as expected?"
2007 Aug 13
2
Backtrace tweaker - broken or me?
Using 1.0.8, I just realized that I''ve been scrolling through pages of
backtraces when rspec is supposed to clean them up for me. This is a
new development machine, so I''m not sure if older versions worked or
not. I''m running Ruby 1.8.6, Rails edge, Mac OS X 10.4.10.
I''ve verified that the QuietBacktraceTweaker is the one that''s running.
2006 Oct 17
3
Should fixtures be transactional?
I started using the new Model.should_have(1).records expectation in
rspec_on_rails, and quickly realized that my fixtures were remaining
loaded, even in contexts that didn''t use them. Bug or feature?
Jay Levitt
2016 Feb 17
1
Blazer_usb driver almost supports Centralion Titan Elite, but not quite
Hello,
I have a UPS branded as "Energit MXE II" that comes with the infamous
Winpower software (as already discussed in this old thread
<http://nut-upsdev.alioth.debian.narkive.com/m0FWk43o/blazer-usb-compatibility-with-ippon-backpro-upses-phoenix-power-co-ltd-usb-to-serial-controller>).
This same UPS appears to be sold as "Centralion Titan Elite" and maybe
other names
2006 Nov 06
1
Integration testing: coupling of get and post on forms
This is such a vague request it''s not even worthy of a ticket, but:
When rspec does support integration testing, it''d be really nice to be
able to do things like this plugin does for standard Rails tests:
http://www.jasongarber.com/articles/2006/10/24/easier-testing-of-forms-form_test_helper
In a nutshell, it finally closes the loop between "the empty form sent
by a
2006 Nov 07
1
RSpec/Selenium start_browser_once patch?
The 0.7.0 vendor/selenium/README.txt references a
"start_browser_once.patch" file. This doesn''t seem to be included in
either the rspec or selenium-rc distributions, and Google finds
nothing... where might I find that patch?
Jay Levitt
2008 Jun 14
2
FTS/squat search indexes built when?
I know that a given search index doesn't get built the first time until
you do an actual search on it from an IMAP client. I don't much care
about that; I'm the only user, and I don't create new folders too
often. At worst, I could create a script to go search every folder once.
But what I'm not clear about: Does it then get updated on every delivery
by LDA? Or does the
2007 Aug 27
7
Foreign key constraints, fixtures, and rake task
I''ve got a spec that loads a fixture in the "before" block. This works
fine running scripts/spec, but when I run rake spec instead, I get:
ActiveRecord::StatementInvalid in ''User in fixture :quentin with an IM
service but no IM name should be invalid''
Mysql::Error: Cannot delete or update a parent row: a foreign key
constraint fails
2006 Jul 24
9
Mongrel: auto-reload plugins?
When developing applications, Webrick will automatically reload
controllers, models, etc. if the source changes. For obvious reasons, it
doesn''t do this for plugins, which makes it a pain to develop said plugins.
I was hoping Mongrel might have some facility to say "watch this directory
too and reload any changes". Obviously, re-init''ing all plugins would be
2006 Apr 02
7
RANT: belongs_to -> refers_to
Every once in a while, I pipe up and whine that "belongs_to" should really
be ''refers_to" [http://dev.rubyonrails.org/ticket/2130]. It''s time again.
I''ve got a bunch of stuff going onto eBay, so, like any good engineer, I
don''t just post it manually: I design a Rails-based inventory database that
creates a semantically-correct XHTML/CSS auction
2006 Jun 29
14
TDD and migrations?
TDD, SVN and migrations seem to be a natural combination for model
development: create a test, add the column with a migration, write the
code, and check it all in when you''re done.
The trouble is that this ends up creating one migration per field. I guess
it''s not horrible in and of itself, but it does have a code smell to it.
Has anyone come up with a different way of doing
2006 Jul 06
7
REPOST: Musings on Rails and logging philosophies
[OK, since I stupidly posted this over the July 4th week[end] and got no
responses, let''s try it again...]
As a perpetual Rails dabbler, I make an awful lot of typical beginner
mistakes. And the logs are always either too verbose or too sparse to help
me. And it started me thinking.
I came from one of the largest production OLTP systems in the world, and
the one thing that helped
2006 Nov 07
1
Should Selenium support be doing rollbacks?
Now that 0.7.0 is forcing me to write properly compartmented specs, I
thought I''d give the "dead easy Selenium support" a try.
Is it supposed to all the things that rspec normally does for me, or is
it just for using rspec-like grammar to surround Selenium tests?
Specifically, should it roll back the database between specifications?
I just did a quick test, and the result
2005 Aug 26
1
[Bug 1075] Host values in config are case sensitive
http://bugzilla.mindrot.org/show_bug.cgi?id=1075
Summary: Host values in config are case sensitive
Product: Portable OpenSSH
Version: 3.8.1p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: bitbucket at mindrot.org
ReportedBy: kwerle at
2004 Jan 09
1
Problem with DNS (UDP) queries
Hi all
I am trying to get rid of strings:
kernel: Connection attempt to UDP FREEBSD_IP:port from DNSSERVER_IP:53
on my console and in log file
I understand that those are replies on DNS queries that for some reason
took too long time to be answered.
I do not want to turn off the "log in vain" feature.
As these strings fill up my log I am afraid to miss some sensitive
messages (e.g.
2004 Feb 06
1
ipfw question
Dear All.
I want to use 'not' for 2 addresses (for both) in ipfw2 rule.
The only way that looks like what I need is
# ipfw add count from IP1 to not IP2,IP3
But does this rule indeed makes what I want? Does it count all
packets destined to addresses other then IP2 AND IP3?!
No other syntax works.
For example more logically correct
not IP2 AND not IP3
or even
not { IP2 or IP3 }
are
2008 Aug 20
9
I want RSpec for CSS layout.
I don''t even know how it''d be possible (through Selenium?), but I want it.
I want to see if my stupid CSS hacks break. I want to say:
describe "#nav-column" do
body = something("#body-column")
it "should line up at the top" do
dom[:top].should_be == body.dom[:top]
end
it "should always be to the right" do
2006 Nov 07
7
should_redirect_to in advance - feels unnatural
I can understand that it''s easier for rspec to set up a mock in advance
of the controller call. But it makes it difficult to do something like:
context "The HarkController, given Louie the logged-in user" do
setup do
post :login, :username => ''louie'', :password => ''atest''
end
specify "should redirect Louie to the home
2007 Sep 16
10
I lost the RSpec fight
I''ve been working on a Rails project with one other developer; he was
using Test::Unit, and I was using RSpec. That works OK for a while, but
obviously it starts causing pain when you have to check in two places to
see if a piece of code is properly tested/spec''d, you can''t use TextMate
shortcuts to switch back and forth between code and test, you have to
duplicate
2008 Jun 14
1
Caseless folder delivery?
I'm using exim4 to deliver into dovecot 1.1, and using plus-addressing to
deliver mailing lists directly to appropriate folders in my "lists" mailbox.
I created a file called /folder-map.lists that looks like
## folder-map.lists
dovecot: Dovecot
lpedge: Linux PowerEdge
... and so on. So mail to lists-lpedge at jay.fm goes to the "Linux PowerEdge"
folder.
The one
2005 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls
up to the top. That''s disconcerting, and often ends up with the
editable field out of the viewable pane. I can duplicate this on both
Mac and PC. Is there a way to prevent this? Even the demo at
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does
this.
Jay Levitt