Displaying 20 results from an estimated 400 matches similar to: "Fixtures: pluraly bitten"
2006 Jan 25
3
Resetting sequences in unit tests with pg
Hi all,
Rails 1.0
Postgresql 8.1
Ruby 1.8.4
Is there a way to reset sequences in unit tests when loading fixture data? I
came across mention of a "Fixtures.reset_sequences method here:
http://api.rubyonrails.com/files/vendor/rails/activerecord/CHANGELOG.html
However, when I tried to call Fixtures.reset_sequences in the setup method, I
got a NoMethodError.
Any ideas?
Thanks,
Dan
2006 Mar 15
0
Grid making helper in view
Hello,
I apologize if this has been asked before.
I am interested in creating a helper for my view that generates a
grid-style table. Here''s what I have in application_helper.rb:
def print_grid_layout(items, table_class, num_columns)
print %Q{<table class=''#{table_class}'' cellpadding=''0'' cellspacing=''0''>\n}
rows =
2006 Jan 24
0
Fixtures subdirectories
Hi,
[This is a repost, I can?t find where went my previous post,
]
I wanted to create subdirectories in the fixtures directory in order to be
able to manage many different initial states for my system (or to sort
fixtures / corresponding model subpackages).
I came up with the idea of writing:
Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/selling"
2006 Nov 23
0
TypeError on loading fixtures for integration tests
Functional tests properly load fixtures, but my integration test
chokes:
# def self.create_fixtures(fixtures_directory, table_names,
class_names = {})
# puts("fixtures dir: "+(fixtures_directory.nil? ? "nil" :
fixtures_directory))
It''s only nil for my integration tests. I''m on rails edge. Does anyone
know what I''m doing wrong here?
1) Error:
2006 Jul 20
1
Ajax and observe_field not updating specified DIV
I have a page that has a dropdown which i''m using observe_field on to
make an ajax call back to my controller. The page initially displays
fine. The method is invoked in my controller when i select a choice in
the dropdown and I have an rjs file which is then invoked. The rjs file
looks like this:
page.replace_html ''embed_calendar'', :partial =>
2006 Jul 20
0
RJS and calendar_helper troubles .... tab characters covering web page
We have implemented calendar_helper.rb to generate an ajaxified calendar
using rjs templates. Everything worked fine until we added a drop down to
select the current month. Now when select a month and the calendar refreshes
to that selected month we get a ton of ''\t'' displayed all over the page
inside what looks like to be a javascript debug print statement ( try {}
catch{} block
2005 Aug 28
0
Position.clone and scroll offsets
I noticed that in a case where I use Position.clone, the element with
the cloned position is displayed somewhere off. My understanding of
positioning is a bit shaky at times, but I think clone needs to take
into account the scroll offsets as shown below.
Michael
var Position = {
...
clone: function(source, target) {
source = $(source);
target = $(target);
2005 Oct 09
1
Setting the user for FastCGI processes?
I''d like to run the FastCGI as a different user than the Apache2 server
(www-data on Debian). I take it this is possible in some way with
suExec2, but so far I haven''t figured out how to do it.
Michael
--
Michael Schuerig Life is just as deadly
mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org As it looks
2006 Mar 27
5
Fixtures, Postgres & Constraints
Anyone have any tips for handling postgres constraints when using
fixtures to load the database, other than to sort out the proper
insertion orders or leaving the constraints out? I''d prefer not to do
the former since I''d rather use my app to generate my fixture data
(using a dump_fixtures task) and I''d prefer not to do the latter
because leaving out constraints till the
2008 Mar 20
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
Am Donnerstag, den 20.03.2008, 15:44 -0700 schrieb Tanya M. Lattner:
> Its not just a matter of checking major/minor versions. It also depends on
> the target and in some cases the OS.
> http://llvm.org/docs/GettingStarted.html#brokengcc
>
> So for example, GCC 3.3.3 on Suse or GCC 3.4.0 on linux/x86
> (32-bit) has issues. Is it easy to check these kinds of things?
uname
2008 Mar 21
1
[LLVMdev] Just got bitten by accidentally using the wrong gcc
Joachim Durchholz wrote:
> Am Donnerstag, den 20.03.2008, 15:44 -0700 schrieb Tanya M. Lattner:
>
>> Its not just a matter of checking major/minor versions. It also depends on
>> the target and in some cases the OS.
>> http://llvm.org/docs/GettingStarted.html#brokengcc
>>
>> So for example, GCC 3.3.3 on Suse or GCC 3.4.0 on linux/x86
>> (32-bit) has
2008 Mar 21
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
> I guess it could be done for things like 4.1.1 or a couple of others on
> the list.
This gcc version always worked fine for me on ubuntu linux (though it
might have been 4.1.2, I don't recall).
Ciao,
Duncan.
2008 Mar 21
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
Am Freitag, den 21.03.2008, 13:03 +0100 schrieb Duncan Sands:
> Hi Joachim,
>
> > I have to report that the Ubuntu gcc-4.1 will fail. 'make' would run
> > without giving more than a few warnings, but 'make install' will
> > complain that it doesn't know how to build one of the intermediate
> > targets and error out (some VMCore/tablegen file IIRC,
2008 Mar 20
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
Am Donnerstag, den 20.03.2008, 15:27 -0700 schrieb Shantonu Sen:
> llvm's ./configure already does that for gcc < 3.
>
> What are valid versions? Exactly 4.0 and 4.2? 4.0 and >=4.2?
There's a list at http://llvm.org/docs/GettingStarted.html#brokengcc so
there is a reasonable basis.
The list isn't comprehensive, of course, and will likely grow in the
future. OTOH
2008 Mar 20
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
On Mar 20, 2008, at 3:00 PM, Joachim Durchholz wrote:
> Hi all,
>
> I just forgot to ./configure with CC=gcc-4.2 CXX=g++-4.2, getting the
> (broken-for-LLVM) gcc-4.1 as a compiler.
> The error message that I got was this:
> make[1]: Entering directory `/home/jo/llvm-wrk/lib/VMCore'
> make[1]: *** No rule to make target
> `/home/jo/llvm-wrk/Release/bin/tblgen',
2008 Mar 20
4
[LLVMdev] Just got bitten by accidentally using the wrong gcc
>> I just forgot to ./configure with CC=gcc-4.2 CXX=g++-4.2, getting the
>> (broken-for-LLVM) gcc-4.1 as a compiler.
>> The error message that I got was this:
>> make[1]: Entering directory `/home/jo/llvm-wrk/lib/VMCore'
>> make[1]: *** No rule to make target
>> `/home/jo/llvm-wrk/Release/bin/tblgen', needed by
>>
2008 Mar 20
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
Hi all,
I just forgot to ./configure with CC=gcc-4.2 CXX=g++-4.2, getting the
(broken-for-LLVM) gcc-4.1 as a compiler.
The error message that I got was this:
make[1]: Entering directory `/home/jo/llvm-wrk/lib/VMCore'
make[1]: *** No rule to make target
`/home/jo/llvm-wrk/Release/bin/tblgen', needed by
`/home/jo/llvm-wrk/lib/VMCore/Release/Intrinsics.gen.tmp'. Stop.
2008 Mar 20
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
llvm's ./configure already does that for gcc < 3.
What are valid versions? Exactly 4.0 and 4.2? 4.0 and >=4.2?
dnl Verify that GCC is version 3.0 or higher
if test "$GCC" = "yes"
then
AC_COMPILE_IFELSE([[#if !defined(__GNUC__) || __GNUC__ < 3
#error Unsupported GCC version
#endif
]], [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower
version])])
fi
2008 Mar 21
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
Am Freitag, den 21.03.2008, 06:56 -0700 schrieb Shantonu Sen:
> I recommend you don't parse version strings. In fact I switch the
> check to use AC_COMPILE precisely for the reason that gcc --version is
> totally unreliable and vendor specific. For example, what's the
> regular expression that tells you what the GCC version is:
> i686-apple-darwin9-gcc-4.0.1 (GCC)
2008 Mar 21
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
I recommend you don't parse version strings. In fact I switch the
check to use AC_COMPILE precisely for the reason that gcc --version is
totally unreliable and vendor specific. For example, what's the
regular expression that tells you what the GCC version is:
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470)
(Aspen 5470.3)
Per the rest of this thread, you can't