similar to: where do I put this test?

Displaying 20 results from an estimated 2000 matches similar to: "where do I put this test?"

2006 Jan 26
3
Calling a SOAP service from within a Rails controller
The following works fine as a standalone ruby program: ********************************************************************************************** t = Time.now starter = Time.local(t.year,t.mon, t.day) + (24 *3600) ender = starter + 7 * 24 *3600 lat = 40.352039 lon = -74.191961 require ''soap/wsdlDriver'' params = {:maxt => false, :mint => false, :temp => true, :dew
2006 Jun 19
2
is there a ''Markaby_scaffold'' available?
I discovered Markaby recently, and am loving it! I''m generating scaffolds, then converting them to Markaby ''.mab'' files. It got me wondering... Has anyone written a plugin to generate scaffolds in Markaby, yet?? That would be truly awesome if there was on out there already. -- Best Regards, -Larry "Work, work, work...there is no satisfactory
2006 Aug 04
3
Web service sessions
I want to use ruby on rails entirely as an xml-rpc web service server. I.e. it will only be called by clients making xml-rpc requests. What I want to to is be able to use something like the session[] functionality for storing session information. However, storing information in the session[] construct requires that the client be a web browser with cookies enabled. Does anyone know of a
2006 Jun 10
8
OT: Good virtual server host with debian?
Hey all, I''m casually shopping around for a host that will give me a virtual server running Debian. It would host some of my rails projects and probably some svn. Does anyone know of a good host? Anecdotes about satisfaction would be nice. Thanks, Bryan -- Posted via http://www.ruby-forum.com/.
2006 May 21
12
TDD for Rails book?
It seems like half the people on this list are writing a book on Ruby or Rails. For all the hints I''ve seen strewn across the list I have yet to see one that will focus on test-driven development for either Ruby or for Rails. If anyone is looking for a topic, please consider this. I''ve been trying to wrap my brain around the TDD process, but its way of thinking is
2006 Jun 05
3
Best practices with Web Services
Hello-- I''m investigating the API facet of my site and wanted to ask a couple questions: 1. The Agile book describes adding an API using the web_services generator which adds stuff to app/api. In Rails 1.1, Jamis added some wants.xml stuff to the controller code which also allows API generation. Which is better to use now? Do they mutually exclude one another? 2. In some cases, I
2006 Apr 21
3
Documenting web services API''s
Sorry to have to post this again - it was probably under the wrong subject and went unnoticed. Is there a standard for providing user documentation for methods that I expose through we services? The default documentation (method names and return types) that appears when the user visits http://localhost:3000/backend/invoke is concise and correct, but a bit terse. How can I give my users a little
2005 May 17
7
Basecamp API
Seeing as how the new Basecamp API reflects a similar use of RoR that I have been working on I''m curious as to what we can expect to be extracted from there in 0.13? Was the API written as an ActionWebService or just as a set of controllers? Any generic AR xml parsing/output methods that we may see in 0.13? Any reason you decided to do everything with HTTP Get instead of utilizing
2017 Feb 22
4
question about directory size in linux..
On 2/22/2017 10:40 AM, Gordon Messmer wrote: > On 02/22/2017 06:34 AM, Jason Welsh wrote: >> How does the directory *itself* have a size of 2.8 megs? > > > If you write a large number of directory entries in a directory, the > directory will grow in order to provide storage for those directory > entries. You can imagine a directory as a text file containing all of >
2006 Feb 13
8
postgres and rake
am in a bit of a quandry... I have asked postgresql-users list and haven''t gotten anything to work with... > > How do I change the owner of a schema? > > > > ALTER SCHEMA "public" OWNER to "some_user"; #? > > http://www.postgresql.org/docs/current/interactive/sql-alterschema.html > > The docs explain this very situation. HTML
2006 May 14
12
Is there a place for java in Ruby on Rails apps?
Hi all, I''m asking this question from the standpoint of a developer with almost 10 years experience with Microsoft technologies, mostly doing server side component and database work. So, I''m not very familiar with the java world. Can anyon tell me how/if java development can complement Ruby on Rails development? I''m not interested in how java can duplicate Rails
2017 Feb 22
2
question about directory size in linux..
On 2/22/2017 12:27 PM, Anthony K wrote: > On my ext4 file system, I have a directory that has >2TB and the > directory entry itself only shows: > > $ ls -ld Stuff > drwxrwxr-x 146 akk akk 36864 Feb 21 21:18 Stuff/ > > $ du -bs Stuff > 2093651427987 Stuff ls -ld is showing the size of the actual directory, NOT the size of the files stored within and under it. du
2005 Dec 27
4
Migrations & Unit Testing: Possible Bug in Rails?
I recently started using migrations to create the schema of a Rails project I am working on. The database I am using for this project is MySQL. The initial migration creates the table and also includes a number of execute statements (to do some things like setting primary keys, autoincrement on some columns and other messy voodoo). Running "rake migrate" creates the database with no
2006 Apr 26
1
Bug in validates_associated?
Here is the setup: Windows XP, InstantRails, MySQL 14.7, Ruby 1.8.4, Rails 1.1.2 MODEL: class Office<ActiveRecord::Base has_many :users end class User<ActiveRecord::Base belongs_to :office validates_presence_of :office_id validates_associated :office <....other stuff...> end UNIT_TEST test/unit/user_test.rb def test_associations u = User.new u.office_id =
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all. I am using PostgreSQL in my current project and I have couple of questions on this topic. Previously I have used 3 databases for project. i.e. megaproject_development, megaproject_test and megaproject_development. But I don''t like this variant because of ''rake dump_db_structure'' writes a lot of PostgreSQL specific data for structure file (operators, functions,
2006 Feb 28
0
Dallas Ruby Brigade meets March 7th
The Dallas Ruby Brigade begins! Following in the proud tradition of Seattle.rb, NYC.rb and many others, Dallas has joined the crowd with its own local Ruby Brigade. We''ll be meeting Tuesday, March 7th in Addison. The plan is as follows: * Meet between 6:45 and 7:00 in the lobby downstairs. Because of the way security works, you''ll want to be timely in your arrival. At
2006 Feb 04
2
CIA question
Hi, I''d like to set up CIA. So I added the plugin to my app, went to my subversion server, added the post commit, added a build directory. I checked out the code in the build directory on the svn server. However, running rake on it fails, because the test database is empty (i.e. no tables, so fixtures don''t load). What''s the solution here?
2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello, When I try to run "rake clone_structure_to_test" on my project, I get the following errors: $ rake clone_structure_to_test (in /home/www/cedscreening) psql:db/development_structure.sql:8: ERROR: permission denied to set session authorization psql:db/development_structure.sql:16: ERROR: permission denied for schema public psql:db/development_structure.sql:34: NOTICE: CREATE
2008 Jun 11
3
help with test design
I''m having trouble figuring out how to drive the design of a class. I''m hoping I can get a hint or two from the more experienced BDDers on this list. I''m writing an adapter class that sits between a 3rd party library and my business logic. I would like to extract some information from objects available from the 3rd party lib and covert them into ruby objects.
2009 Feb 08
10
can wine detect win AD logon scripts
i m looking at windows workstation users switching to linux workstations all of them are authenticated by windows AD domain controller. the windows AD has some logon scripts which do not run on linux some the scripts are as below to map shared drives on the file server NET USE G: \\172.16.2.2\FINANCE NET USE G: \\172.16.2.2\AUDIT linux by default doesnt recognise these scripts. can Wine help me