similar to: spec:models depends on development db:migration

Displaying 20 results from an estimated 10000 matches similar to: "spec:models depends on development db:migration"

2007 Oct 18
4
Feeding the framework ?
Hi there, Is it just me or do many other rspec / rpsec_on_rails users spend more time than they would like feeding the framework ? Don''t get me wrong, I love rpsec, but I seem to spend about 2/3 hours per week hunting down rspec problems. For example, today `rake spec:models` is broken. When I migrate, load fixtures and run `spec -cfs` all is well. When I run `rake spec:models`,
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
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
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 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
2007 Mar 19
24
alias method spec?
I am completely baffled by this one - My guess is that there is no pure ruby way to do this - but how could I set up a spec to test that one method is an alias of another? Thanks for any help, Scott
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 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
2007 Mar 25
3
New Style: describe-it instead of context-specify
Hello, in the tunk, i found a new style for spec: describe Foo do it "should do bar" do ... end end instead of context "Foo" context "should do bar" ... end end The Rails-Textmate-bundle in trunk use only the new "describe-it" style, What are the reasons for the new style ? Shall i use the new style from now on ? Hussein
2007 Jan 09
6
spec not running in TextMate
I tried running a spec with command-r in TextMate and got: /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/ lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems (LoadError) from /Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ temp_textmate.GplhPr:3:in `require'' from
2008 May 14
4
Reuse steps like a method call
If I have a step matcher defined as so: Given "a user named $username" do |username| .... end Is there a way to call it from another step? For example: Given "a user named $username with a blog post |username| given_a_user_named(username) # calls existing step code # create a blog post end Cheers, -- Bryan Helmkamp http://brynary.com -- My blog
2006 Oct 06
8
Expecting calls with two different parameters
Hello, I''ve just started using Mocha in the tests for my Rails app, and I''ve run across an issue with mocking a method that should be called with different parameters. How would I setup a mock that expects that a method will be called once with no paramaters, and a second time with a parameter? I''d be tempted to shortcut and just do something like
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It''s still missing a lot of functionality, but it''s useful to us as is, so I''m shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Bryan Here''s the README:
2007 Feb 17
4
RSpec usage
Hey all, Trying to get feel for RSpec usage so I''m taking a straw poll... What''s the largest project you''ve used RSpec on in terms of app LOC app and spec LOC? Also, how long have you been using RSpec in "production" code? -Bryan
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.
2006 Nov 24
0
rSpec REL_0_7_2 rspec_on_rails (MissingSourceFile) >> Fixed in trunk
Hi Aslak, Thanks for the help. That bug is fixed in trunk. Here''s my path to recovery ... $ svn co svn://rubyforge.org/var/svn/rspec/trunk ~/tmp/rspec $ cd ~/tmp/rspec $ rake gem $ sudo gem install pkg/rspec-0.7.3.gem $ ./script/plugin install --force svn://rubyforge.org/var/svn/rspec/trunk/vendor/rspec_on_rails/vendor/plugins/rspec $ ./script/generate rspec (required to regenerate
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
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is in progress, where could I start to try and build one? JD