similar to: Feeding the framework ?

Displaying 20 results from an estimated 700 matches similar to: "Feeding the framework ?"

2008 Jan 24
2
Meridian case
Hi there, I have a *really* weird issue with rspec on rails: Given a time meridian formatted using %p When I run `rake spec` the time meridian is converted to lower case: expected: "Today 08:00 PM", got: "Today 08:00 pm" Yet when I run `rake spec:models` and `spec -cfs app/models` the specs pass, ie the the time meridian is in upper case. Anyone got any ideas how I
2006 May 11
4
Legacy database problem
Hi I am trying to use Ruby on Rails to work with an existing database. The problem is that, all the table names begin with a captial letter (e.g. Products). So I did the following changes in environment.rb, I''ve added under # Include your application configuration below ActiveRecord::Base.pluralize_table_names = false In class Product, I''ve added set_table_name
2006 Sep 01
2
Mrelation does not exists
Hello! I''m having the following error: RuntimeError: ERROR C42P01 Mrelation "subjects_users_id_seq" does not exist Fnamespace.c L200 RRangeVarGetRelid: SELECT currval (''subjects_users_id_seq'') when I try to do: subject= SubjectsUser.new(params[:subjects_user]) subject.save The models: class User < ActiveRecord::Base has_one :last_entrie has_one
2007 Oct 18
6
spec:models depends on development db:migration
For those interested .... rake spec:models seems to clone the test database from development. If your dev db is empty, the models task fails mysteriously. Anyway, to make sure your dev db is at the current migration version, I added this dependency in lib/tasks task ''spec:models'' => ''db:migrate'' Now the dev db is migrated up with each test pass. Keith
2006 Aug 08
2
Testing Inconsistencies - ruby works rake fails
I''m getting some very weird results when testing my system. If I run my unit tests using => ruby \test\unit\<filename.rb> each of the tests pass. If I run => rake test_units I get several failures, and they all have to deal with the same issue. For instance I''m getting => ActiveRecord::StatementInvalid: RuntimeError: ERROR C42P01 Mrelation
2007 Dec 11
3
Fresh rspec on rails install blows up
Hi there, I installed the rspec on rails plugin for a new project today and guess what -- it blows up! All by other rspec on rails projects are working fine. I updated all gems & still no joy. Any ideas how I can troubleshoot this one ? Here''s my setup: - ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0] - Rails 1.2.5 Installed with svn: ruby script/plugin install
2008 Nov 14
3
migration with data
Hi I am using postgres and have two migration files like 001_create_categories.rb as class CreateCategories < ActiveRecord::Migration def self.up create_table :categories do |t| t.column :name, :string, :limit=>80 end end def self.down drop_table :categories end end and 002_populate_categories.rb class PopulateCategories < ActiveRecord::Migration
2007 Feb 28
2
Fixture name not available as class variable in spec
Hi there, I can''t seem to access the fixture name as a class variable from my specs. I have to set the variable in the spec setup. ... [fixtures] my_fixture: id: 1 ... [rpsec] @my_fixture.id.should == 1 ... [error] You have a nil object when you didn''t expect it! The error occurred while evaluating nil.id ... [my setup] RSpec-0.7.5.1 (r1395) - BDD for Ruby Rails
2006 Jul 20
4
Help with Rails and postgres with sequence numbers (global?)
Hello, I am building an Rails applications that has to integrate an legacy system (lxoffice) (schema at: http://www.lx-office.org/uploads/media/DB_Schema_2.1.1_R_393_17_03_2005_.pdf). They somehow use global ids (global for some tables). I can not change the schema and still I want to use Rails to access it and not pure SQL. When I try to insert a record I get the following message:
2007 Mar 12
1
rspec on rails instantiated fixtures OFF by default ?
Hi there, Why are the instantiated fixtures turned off by default in the rspec on rails plugin? This was not the case in older versions. After upgrading (and much head scratching) I had to turn on the instantiated_fixtures in spec_helper thusly ... self.use_instantiated_fixtures = true Regards, Keith
2006 Nov 27
1
rSpec website tutorial correction
Hi there, On page http://rspec.rubyforge.org/documentation/rails/writing/views.html the view spec example is incorrect. Instead of: require File.dirname(__FILE__) + ''/../../spec_helper'' It should read: require File.dirname(__FILE__) + ''/../spec_helper'' Regards, Keith
2006 Nov 22
1
rspec_on_rails (MissingSourceFile)
Hi there, I''ve installed rspec, rails plugin & generators thusly: $ sudo gem install rspec $ sudo gem install rspec_generator $ sudo gem install zentest -v 3.4.1 $ ./script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec $ ./script/generate rspec $ ./script/generate rspec_model ModelName With Rails version: $ rails
2007 Oct 19
11
Patch idea for rspec_on_rails
I recently wrote a matcher for testing AR associations which allows you to specify things like: Foo.should have_many(:bars).through(:bazes) I''m pretty darned proud of it and a couple of people have suggested that I should submit it to the rspec_on_rails project. Before I go to the trouble of writing out rdoc and fully spec''ing it, I just wanted to make sure this was
2007 Dec 03
7
RSpec Project
Hey does anyone know of a good open source Rails project that uses RSpec? I''d like to check out some real world code that''s drinking the RSpec BDD koolaid. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2008 Nov 01
5
Issues after removal of rpsec plugins and gem install
autotest will no longer run my tests after I installed the rpsec gem and removed the plugins. I did install the rspec-rails gem as well. Is anyone else having this issue? -- Posted via http://www.ruby-forum.com/.
2008 Oct 11
5
[LLVMdev] C++ to C?
Hi Michael, On Sat, Oct 11, 2008 at 12:44 PM, Michael McDonnell < michaeldmcdonnell at yahoo.com> wrote: > > > My assumption has been that LLVM generates machine code for a virtual > machine, and that you supply an interpreter that will execute the code. > The name can be somewhat confusing. LLVM is a lot of things, the web page gives some important areas (http://llvm.org/).
2008 Oct 11
0
[LLVMdev] C++ to C?
Hi Daniel,   Thanks for your help.   You mentioned that "the current interpreter makes no pretense of running on a "virtual machine"", but isn't the interpreter itself a virtual machine? I'm not looking to emulate any particular processor - just interested in a tool that will help teach how a processor works.   Can LLVM help, or am I completely off track?   Thanks, M.
2007 Feb 23
5
rspec on rails 0 7 5 1
Hi there, I can''t upgrade rspec on rails to 0.7.5.1. I followed the install guide on the website without sucsess. Here''s my env info: $ rails -v Rails 1.2.2 $ gem -v 0.9.2 $ spec -v RSpec-0.7.5.1 (r1395) - BDD for Ruby http://rspec.rubyforge.org/ $ spec ... <snip> ############################################################################ Your RSpec on Rails plugin
2007 Dec 04
3
svn: Connection closed unexpectedly when getting trunk
Is anyone else getting this message? With rails 2.0 pre-releases it looks like you also have to be working with the latest version of rpsec. $ ruby script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec svn: Connection closed unexpectedly The above is what I get when I try to install the trunk version. Is there something that I am missing? Thanks -- Posted via
2008 Oct 11
2
[LLVMdev] C++ to C?
I realized I missed this part of your email: Can LLVM help, or am I completely off track? > It isn't clear to me yet. I have used LLVM for a different but similar purpose, which effectively implements a stronger virtual machine on top of the LLVM IR. I have been very happy with the decision to use LLVM instead of, say, working with x86 directly. On the other hand, if you are only