Re: [rspec-users] Name collision - how would you handle this?

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 3:05 PM, Myron Marston wrote: > Sorry it's taken me so long to respond--I have considerably less time > on weekdays than the weekend to take care of things like this. > >> Yehuda Katz made a similar suggestion to me, referencing some code from >> merb:http://github.com/merb/

Re: [rspec-users] Autotest does not start

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 4:54 PM, Don French wrote: > That is correct. No tests are run. Just get the OS command prompt > back. You said in an earlier post that this happens whether you run this under bundler or not. What, precisely, are the commands you're using? > Don French > > > On Aug 11, 8:4

Re: [rspec-users] Autotest does not start

2010-08-11 Thread Don French
That is correct. No tests are run. Just get the OS command prompt back. Don French On Aug 11, 8:49 am, Ashley Moran wrote: > On 11 Aug 2010, at 19:44, Don French wrote: > > > Any help on this. I think I have read all posts related to autotest > > but still do not have the answer. Is there somet

Re: [rspec-users] Name collision - how would you handle this?

2010-08-11 Thread Myron Marston
Sorry it's taken me so long to respond--I have considerably less time on weekdays than the weekend to take care of things like this. > Yehuda Katz made a similar suggestion to me, referencing some code from > merb:http://github.com/merb/merb/blob/master/merb-core/lib/merb-core/contr... > > Merb a

Re: [rspec-users] Rspec2, Autotest showing failure on all passing specs

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 2:48 PM, Pixel wrote: > On Wed, Aug 11, 2010 at 12:21 AM, David Chelimsky > wrote: >> I've never seen that before. Do you have red_green installed and maybe >> referenced from ~/.autotest? >> >>> >>> Off to try and reproduce this on a fresh gemset >>> >>> -Cole > >

Re: [rspec-users] Rspec2, Autotest showing failure on all passing specs

2010-08-11 Thread Pixel
On Wed, Aug 11, 2010 at 12:21 AM, David Chelimsky wrote: > I've never seen that before. Do you have red_green installed and maybe > referenced from ~/.autotest? > >> >> Off to try and reproduce this on a fresh gemset >> >> -Cole Hey David, It appears at the moment that this is coming from a

Re: [rspec-users] Autotest does not start

2010-08-11 Thread Ashley Moran
On 11 Aug 2010, at 19:44, Don French wrote: > Any help on this. I think I have read all posts related to autotest > but still do not have the answer. Is there something that works better > with Rspec that autotest? When you say "and a prompt (back)" ... do you mean autotest exits in both situat

Re: [rspec-users] Autotest does not start

2010-08-11 Thread Don French
Any help on this. I think I have read all posts related to autotest but still do not have the answer. Is there something that works better with Rspec that autotest? Don French On Aug 10, 4:24 pm, Don French wrote: > I have a non rails app using rspec2.  I created the autotest/ > discover.rb and

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Phillip Koebbe
On 2010-08-11 12:29 PM, Craig Demyanovich wrote: On Wed, Aug 11, 2010 at 12:53 PM, Nadal > wrote: I posted a question on shoulda forum. It is under moderation so I don't have a link yet. To the people who do not use shoulda: How would you write a test fo

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Craig Demyanovich
On Wed, Aug 11, 2010 at 12:53 PM, Nadal wrote: > I posted a question on shoulda forum. It is under moderation so I > don't have a link yet. > > To the people who do not use shoulda: How would you write a test for > above case. I assume it would require set up a subject, set nil value, > and then

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Nadal
I posted a question on shoulda forum. It is under moderation so I don't have a link yet. To the people who do not use shoulda: How would you write a test for above case. I assume it would require set up a subject, set nil value, and then see if there is an error message. I still think that for suc

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Craig Demyanovich
On Wed, Aug 11, 2010 at 10:38 AM, David Chelimsky wrote: > > Also - the subject line is backwards - it shoulda been "shoulda not working > with rspec-2" ;) It's been a long time since I tried shoulda, but I used to like to give the advice, "you shoulda used RSpec instead." ;-) Hope you get ever

[rspec-users] generator-spec release 0.4.8

2010-08-11 Thread Kristian Mandrup
Now with an almost complete test suite to ensure it all works as it should and to demonstrate how to use it. The DSL is better than ever! describe 'model_generator' do # include Rails model helpers for ActiveRecord # available: # Other ORM options - :mongo_mapper, :mongoid and :data_mapper

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 9:36 AM, David Chelimsky wrote: > > On Aug 11, 2010, at 2:31 AM, Nadal wrote: > >> I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. >> 19" . >> >> I have following code at spec/models/user_spec.rb >> >> require 'spec_helper' >> >> describe User do >> >

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 2:31 AM, Nadal wrote: > I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. > 19" . > > I have following code at spec/models/user_spec.rb > > require 'spec_helper' > > describe User do > > it { should validate_presence_of(:email) } > > it { should valida

[rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Nadal
I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. 19" . I have following code at spec/models/user_spec.rb require 'spec_helper' describe User do it { should validate_presence_of(:email) } it { should validate_presence_of(:name) } end Here is my gemfile group :developm

Re: [rspec-users] how to place the app in the rails dir

2010-08-11 Thread Kristian Mandrup
1) If your app name is "nice-app", make your directory like this railsprojects/nice-app 2) First update rubygems and perhaps use rvm (ruby version manager) http://railscasts.com/episodes?page=3 See railscast 200 and 201. Bundler can also be used for Rails 2 I think ;) Which version of Rails