[rspec-users] fixture scenario builder

2007-08-09 Thread Ingo Weiss
Hi all,

did anybody get 'fixture scenario builder' (http://errtheblog.com/post/
7708) to work with rspec? I am getting the following error:

/plugins/fixture_scenarios_builder/lib/scenario_builder.rb:8:in
`scenario': undefined method `scenario' for main (NoMethodError)

Ingo

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


[rspec-users] rspec and active_scaffold

2007-08-09 Thread Jonathan Linowes
Hi,

Anyone here have a link or tips for a complete spec for a dead simple  
active_scaffold controller, including its internal calls stubbed out  
which we could use as a starting point? thanks.

linoj

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] AutoTest plugin and rspec for rails

2007-08-09 Thread sinclair bain
Dave,
Got that ...

--colour
--format
progress
   ...

The latest ...  all installed today ... except rspec 4 rails it is 1.0.

This was all going ok before I installed autotest (red, green and yellow).




On 8/9/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
>
> On 8/9/07, sinclair bain <[EMAIL PROTECTED]> wrote:
> > (WinXP)
> > Hi,
> >
> > I have the autotest rails plugin running - detecting changes and running
> the
> > examples.
> >
> > However the rspec color output (of which I am a fan) ... has stopped
> > happening
> >
> > Anybody got a spare moment to point me in the right direction, please ?
>
> You need a spec/spec.opts file with the following:
>
> --colour
>
> Is that in place? Also, what versions of everything are you using?
>
>
> >
> > Cheers!
> > sinclair
> >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Using rcov and ouput to screen

2007-08-09 Thread Scott Taylor

On Aug 9, 2007, at 8:57 PM, barsalou wrote:

> I'd like to output my rcov data to the screen in ascii instead of
> html...is that possible using the rake spec:rcov command?

Look at the RSpec gem's rdoc.  I believe it is something like  
Rake::RcovTask.  An option can be provided to give rcov options.  Run  
rcov --help.

>
> Also, is there somewhere that will allow me to search the mail
> archives...I'm pretty sure someone else has asked similar questions.
>

Google is your friend.  Rubyforge also has the mailing lists,  
although they aren't searchable.

Scott
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] AutoTest plugin and rspec for rails

2007-08-09 Thread Scott Taylor

On Aug 9, 2007, at 7:47 PM, David Chelimsky wrote:

> On 8/9/07, sinclair bain <[EMAIL PROTECTED]> wrote:
>> (WinXP)
>> Hi,
>>
>> I have the autotest rails plugin running - detecting changes and  
>> running the
>> examples.
>>
>> However the rspec color output (of which I am a fan) ... has stopped
>> happening
>>
>> Anybody got a spare moment to point me in the right direction,  
>> please ?
>
> You need a spec/spec.opts file with the following:
>
> --colour
>
> Is that in place? Also, what versions of everything are you using?

Also try running it would the --drb flag, if you are already using it.

Scott

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


[rspec-users] Using rcov and ouput to screen

2007-08-09 Thread barsalou
I'd like to output my rcov data to the screen in ascii instead of 
html...is that possible using the rake spec:rcov command?

Also, is there somewhere that will allow me to search the mail 
archives...I'm pretty sure someone else has asked similar questions.

Thanks for the help.

Mike B.


This message was sent using IMP, the Internet Messaging Program.

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-09 Thread Lance Carlson
About these methods requiring arguments? I thought you were able to
reproduce the problems I was having and was also able to reproduce a
working application with no arguments. By default these methods should
not require arguments to be passed as it is unnecessary noise in the
code. Perhaps we can continue this discussion on IRC? #rspec? What is
your s/n?

On 8/9/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On 8/9/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > Is it possible that rspec is not pulling the instance variables into
> > the method because this method is being defined before instance
> > variables in parameters are assigned to that method? I'm trying to
> > hone down where the problem is popping up exactly. Any insight?
>
> Not really more than what I said earlier in this thread.
>
> > On 8/9/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > On 8/9/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > Were you able to come up with any solutions?
> > >
> > > Nope. Anyone else?
> > >
> > > >
> > > > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > > > Awesome! Thank you! :)
> > > > >
> > > > > Don't thank me yet. I've spent some time trying to track this down and
> > > > > I've found my way into some methods in routing.rb that are dynamically
> > > > > generated (and so you can't )(*&)(*& read them to debug them quite so
> > > > > easily) that call the methods (in your case) label_id_value and
> > > > > id_value (being the artist id). I have no idea yet where those two
> > > > > methods get generated. Once I do, then we can stub them. Unfortunately
> > > > > I can't really spend any more time on this right now (though I'd love
> > > > > to solve it).
> > > > >
> > > > > In the mean time, you'll just have to use the parameters if you want
> > > > > the specs to work with the same code with which your app works.
> > > > >
> > > > >
> > > > > >
> > > > > > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > > > > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > > > > > I just visited the action in my browser and i don't get any 
> > > > > > > > errors. I
> > > > > > > > am also running on edge rails as the application relies on
> > > > > > > > ActiveResource. Can you show me the code you created?
> > > > > > >
> > > > > > > OK - I've created a small project and am able to reproduce the
> > > > > > > behaviour you're describing. I'll follow up when learn something.
> > > > > > >
> > > > > > > David
> > > > > > > ___
> > > > > > > rspec-users mailing list
> > > > > > > rspec-users@rubyforge.org
> > > > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > > > >
> > > > > > ___
> > > > > > rspec-users mailing list
> > > > > > rspec-users@rubyforge.org
> > > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > > >
> > > > > ___
> > > > > rspec-users mailing list
> > > > > rspec-users@rubyforge.org
> > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > >
> > > > ___
> > > > rspec-users mailing list
> > > > rspec-users@rubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > >
> > > ___
> > > rspec-users mailing list
> > > rspec-users@rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-09 Thread David Chelimsky
On 8/9/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> Is it possible that rspec is not pulling the instance variables into
> the method because this method is being defined before instance
> variables in parameters are assigned to that method? I'm trying to
> hone down where the problem is popping up exactly. Any insight?

Not really more than what I said earlier in this thread.

> On 8/9/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > On 8/9/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > Were you able to come up with any solutions?
> >
> > Nope. Anyone else?
> >
> > >
> > > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > > Awesome! Thank you! :)
> > > >
> > > > Don't thank me yet. I've spent some time trying to track this down and
> > > > I've found my way into some methods in routing.rb that are dynamically
> > > > generated (and so you can't )(*&)(*& read them to debug them quite so
> > > > easily) that call the methods (in your case) label_id_value and
> > > > id_value (being the artist id). I have no idea yet where those two
> > > > methods get generated. Once I do, then we can stub them. Unfortunately
> > > > I can't really spend any more time on this right now (though I'd love
> > > > to solve it).
> > > >
> > > > In the mean time, you'll just have to use the parameters if you want
> > > > the specs to work with the same code with which your app works.
> > > >
> > > >
> > > > >
> > > > > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > > > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > > > > I just visited the action in my browser and i don't get any 
> > > > > > > errors. I
> > > > > > > am also running on edge rails as the application relies on
> > > > > > > ActiveResource. Can you show me the code you created?
> > > > > >
> > > > > > OK - I've created a small project and am able to reproduce the
> > > > > > behaviour you're describing. I'll follow up when learn something.
> > > > > >
> > > > > > David
> > > > > > ___
> > > > > > rspec-users mailing list
> > > > > > rspec-users@rubyforge.org
> > > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > > >
> > > > > ___
> > > > > rspec-users mailing list
> > > > > rspec-users@rubyforge.org
> > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > >
> > > > ___
> > > > rspec-users mailing list
> > > > rspec-users@rubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > >
> > > ___
> > > rspec-users mailing list
> > > rspec-users@rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-09 Thread Lance Carlson
Is it possible that rspec is not pulling the instance variables into
the method because this method is being defined before instance
variables in parameters are assigned to that method? I'm trying to
hone down where the problem is popping up exactly. Any insight?

On 8/9/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On 8/9/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > Were you able to come up with any solutions?
>
> Nope. Anyone else?
>
> >
> > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > Awesome! Thank you! :)
> > >
> > > Don't thank me yet. I've spent some time trying to track this down and
> > > I've found my way into some methods in routing.rb that are dynamically
> > > generated (and so you can't )(*&)(*& read them to debug them quite so
> > > easily) that call the methods (in your case) label_id_value and
> > > id_value (being the artist id). I have no idea yet where those two
> > > methods get generated. Once I do, then we can stub them. Unfortunately
> > > I can't really spend any more time on this right now (though I'd love
> > > to solve it).
> > >
> > > In the mean time, you'll just have to use the parameters if you want
> > > the specs to work with the same code with which your app works.
> > >
> > >
> > > >
> > > > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > > > I just visited the action in my browser and i don't get any errors. 
> > > > > > I
> > > > > > am also running on edge rails as the application relies on
> > > > > > ActiveResource. Can you show me the code you created?
> > > > >
> > > > > OK - I've created a small project and am able to reproduce the
> > > > > behaviour you're describing. I'll follow up when learn something.
> > > > >
> > > > > David
> > > > > ___
> > > > > rspec-users mailing list
> > > > > rspec-users@rubyforge.org
> > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > >
> > > > ___
> > > > rspec-users mailing list
> > > > rspec-users@rubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > >
> > > ___
> > > rspec-users mailing list
> > > rspec-users@rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-09 Thread David Chelimsky
On 8/9/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> Were you able to come up with any solutions?

Nope. Anyone else?

>
> On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > Awesome! Thank you! :)
> >
> > Don't thank me yet. I've spent some time trying to track this down and
> > I've found my way into some methods in routing.rb that are dynamically
> > generated (and so you can't )(*&)(*& read them to debug them quite so
> > easily) that call the methods (in your case) label_id_value and
> > id_value (being the artist id). I have no idea yet where those two
> > methods get generated. Once I do, then we can stub them. Unfortunately
> > I can't really spend any more time on this right now (though I'd love
> > to solve it).
> >
> > In the mean time, you'll just have to use the parameters if you want
> > the specs to work with the same code with which your app works.
> >
> >
> > >
> > > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > > I just visited the action in my browser and i don't get any errors. I
> > > > > am also running on edge rails as the application relies on
> > > > > ActiveResource. Can you show me the code you created?
> > > >
> > > > OK - I've created a small project and am able to reproduce the
> > > > behaviour you're describing. I'll follow up when learn something.
> > > >
> > > > David
> > > > ___
> > > > rspec-users mailing list
> > > > rspec-users@rubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > >
> > > ___
> > > rspec-users mailing list
> > > rspec-users@rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Problems with RESTfully generated helpers

2007-08-09 Thread Lance Carlson
Were you able to come up with any solutions?

On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > Awesome! Thank you! :)
>
> Don't thank me yet. I've spent some time trying to track this down and
> I've found my way into some methods in routing.rb that are dynamically
> generated (and so you can't )(*&)(*& read them to debug them quite so
> easily) that call the methods (in your case) label_id_value and
> id_value (being the artist id). I have no idea yet where those two
> methods get generated. Once I do, then we can stub them. Unfortunately
> I can't really spend any more time on this right now (though I'd love
> to solve it).
>
> In the mean time, you'll just have to use the parameters if you want
> the specs to work with the same code with which your app works.
>
>
> >
> > On 8/8/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > > On 8/8/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
> > > > I just visited the action in my browser and i don't get any errors. I
> > > > am also running on edge rails as the application relies on
> > > > ActiveResource. Can you show me the code you created?
> > >
> > > OK - I've created a small project and am able to reproduce the
> > > behaviour you're describing. I'll follow up when learn something.
> > >
> > > David
> > > ___
> > > rspec-users mailing list
> > > rspec-users@rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] AutoTest plugin and rspec for rails

2007-08-09 Thread David Chelimsky
On 8/9/07, sinclair bain <[EMAIL PROTECTED]> wrote:
> (WinXP)
> Hi,
>
> I have the autotest rails plugin running - detecting changes and running the
> examples.
>
> However the rspec color output (of which I am a fan) ... has stopped
> happening
>
> Anybody got a spare moment to point me in the right direction, please ?

You need a spec/spec.opts file with the following:

--colour

Is that in place? Also, what versions of everything are you using?


>
> Cheers!
> sinclair
>
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


[rspec-users] AutoTest plugin and rspec for rails

2007-08-09 Thread sinclair bain
(WinXP)
Hi,

I have the autotest rails plugin running - detecting changes and running the
examples.

However the rspec color output (of which I am a fan) ... has stopped
happening

Anybody got a spare moment to point me in the right direction, please ?

Cheers!
sinclair
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-08-09 Thread Scott Taylor

On Aug 9, 2007, at 5:33 AM, aslak hellesoy wrote:

> Hi Obie!
>
> Check out Rubinius and Gecode/R (and RSpec hehe)
>
> On 8/9/07, Obie Fernandez <[EMAIL PROTECTED]> wrote:
>> Any idea if it's kosher to include snippets of GPL'd code in a
>> commercial publication? MIT license is no problem, but the GPL makes
>> me nervous about that.
>>
>
> I, personally, wouldn't want to put a virus in my book, but IANAL.

This seems to cover it (at least in the US):

http://www.gnu.org/licenses/gpl-faq.html#SourceCodeInDocumentation

http://en.wikipedia.org/wiki/Fair_Use

Scott


___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] reusable specs - almost there

2007-08-09 Thread David Green



David Chelimsky-2 wrote:
> 
> On 8/5/07, David Green <[EMAIL PROTECTED]> wrote:
>>
>> that's a great point, but there are some things about shared behaviours I
>> don't like. for example, I have 14 different contexts I'm testing (and
>> more
>> to come) in 8 controllers.
>>
>> I can do this:
>>
>> describe MyController do
>>   it_should_behave_like "context 1"
>>   it_should_behave_like "context 2"
>>   .
>>   .
>>   it_should_behave_like "context 14"
>> end
>>
>> but then I lose the context info in the output, it just displays one long
>> list of examples.
> 
> Interesting. This is kind of backwards from how I envision shared
> behaviours. To me, a shared behaviour is a behaviour that is shared
> across objects, not contexts. In other words:
> 
> describe "any controller", :shared => true do
>   it "should do a when b" { ... }
> end
> 
> describe "a specific controller" do
>   it_should_behave_like "any controller"
> end
> 
> As opposed to:
> 
> describe "any controller when the user is logged in", :shared => true do
>   it "should do a when b" { ... }
> end
> 
> describe "a specific controller" do
>   it_should_behave_like "any controller when the user is logged in"
> end
> 
> Subtle difference, but I'm sure it guides in a different direction.
> 
> The problem you're experiencing is not new, and I'm definitely
> interested in discussing solutions for it, but I'm much more
> interested in ways rspec could improve than ways to work around
> rspec's deficiencies.
> 
>> The alternative is:
>>
>> describe MyController, "context 1" do
>>   it_should_behave_like "context 1"
>> end
>> describe MyController, "context 2" do
>>   it_should_behave_like "context 2"
>> end
>> .
>> .
>> describe MyController, "context 14" do
>>   it_should_behave_like "context 14"
>> end
>>
>> this way the context info is preserved in the output, but it's more work,
>> especially across 8 controllers.
>>
>> another thing is, depending on the model being used, controllers will
>> instantiate variables of different names. e.g. in the "dvd" controller,
>> an
>> instance of the Dvd model would be stored in @dvd, whereas in the "book"
>> controller, it would be in @book . using dynamic specs, I can make my
>> examples more specific depending on the controller being tested e.g. :
>>
>> # obj and var passed in as parameters
>> it "should load a #{obj.class} object into @#{varname}" do
>>   get :show
>>   assigns[var_name].should == obj
>> end
>>
>> I could put obj and varname into instance variables in the before()
>> method,
>> but they're only available in the example block, not from the example
>> title
>>
>> these are minor complaints really, but as my project grows, they become
>> more
>> of an issue.
> 
> Understood - although, if all of these controllers are behaving
> exactly the same way with only a variable name or two difference, it
> seems to me that the duplication problem is in the code, not the
> specs. Perhaps there is some common code that could be extracted to a
> module - then you can have specs for that module and specify that the
> module should be included in each of your controllers.
> 
> WDYT?
> 
> 

I spent some time refactoring and I'm at happy with the stage I'm at now. as
per your suggestion, I extracted common code and now only test it in one
controller. In situations where it isn't practical to extract code, I'm
still using shared behaviour but setting instance variables in before() to
customize the specs slightly. 

I've pretty much given up on dynamically generating specs. as for improving
rspec, I think it would be a great feature if shared behaviours could accept
parameters, which are available both inside and outside examples. Then you
could do things like:

describe "a standard create action", :shared => true do

  it "should instantiate a new #{target_class} object called #{target_name}"
do
get :create
assigns[target_name].should be_instance_of(target_class)
  end

end

I can accomplish the same by setting @target_name and @target_class instance
variables, but it would be nice if the example titles could include those
values too.

thanks for all your help
dave
-- 
View this message in context: 
http://www.nabble.com/reusable-specs---almost-there-tf4216708.html#a12070479
Sent from the rspec-users mailing list archive at Nabble.com.

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-08-09 Thread Scott Taylor

On Aug 9, 2007, at 5:33 AM, aslak hellesoy wrote:

> Hi Obie!
>
> Check out Rubinius and Gecode/R (and RSpec hehe)
>

I would second Rubinius, because it would considerably lessen the  
learning curve for some one new to RSpec.

> On 8/9/07, Obie Fernandez <[EMAIL PROTECTED]> wrote:
>> Any idea if it's kosher to include snippets of GPL'd code in a
>> commercial publication? MIT license is no problem, but the GPL makes
>> me nervous about that.
>>
>
> I, personally, wouldn't want to put a virus in my book, but IANAL.


A virus? Strong words, Aslak.

On another note, this book aside: Why is *all* the Ruby code out  
there licensed under MIT, and not GPL'ed or dual licensed?

Scott

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-08-09 Thread aslak hellesoy
Hi Obie!

Check out Rubinius and Gecode/R (and RSpec hehe)

On 8/9/07, Obie Fernandez <[EMAIL PROTECTED]> wrote:
> Any idea if it's kosher to include snippets of GPL'd code in a
> commercial publication? MIT license is no problem, but the GPL makes
> me nervous about that.
>

I, personally, wouldn't want to put a virus in my book, but IANAL.

Aslak

> On 7/31/07, Scott Taylor <[EMAIL PROTECTED]> wrote:
> >
> > I've just started DatedBackup (an rsnapshot-like utility), which has
> > about 500 LOC at the moment.  It is licensed under the GPL, and has
> > 190 example specs.  If you are interested, download the trunk from
> > Rubyforge:
> >
> > svn checkout svn://rubyforge.org/var/svn/datedbackup/trunk/
> > svn checkout http://datedbackup.rubyforge.org/svn/trunk/
> >
> > It has a DSL baked in, which I know is up your alley.
> >
> > Of course, Rspec itself would probably be the model if you needed to
> > look at specs.
> >
> > Best Regards,
> >
> >
> > Scott
> >
> > On Jul 30, 2007, at 10:48 PM, Obie Fernandez wrote:
> >
> > > I'm trolling for example RSpec code. Any pointers appreciated.
> > >
> > > Cheers,
> > > Obie
> > > ___
> > > rspec-users mailing list
> > > rspec-users@rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> > ___
> > rspec-users mailing list
> > rspec-users@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
>
>
> --
> Obie Fernandez
> http://jroller.com/obie/
>
> Pre-order my book The Rails Way today!
> http://www.amazon.com/dp/0321445619
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] rspec with autotest on a windows machine

2007-08-09 Thread Scott Taylor

Well, I can tell you that you *won't* need the --loadby, and -- 
reverse switches if using autotest.

Does the command generated by autotest run ok on your DOS command line?

Scott


On Aug 8, 2007, at 7:12 PM, David Parker wrote:

> Scott,
>
> Yes, my spec.opts file contains the following:
> --colour
> --format
> progress
> --loadby
> mtime
> --reverse
>
> Thoughts?  If this seems like too much of a hassle, or unknown, I  
> should say that I plan on "upgrading" my windows machine to Ubuntu  
> Linux in the next week or two...
>
> Thanks,
>
> David Parker
>
>
> >Do you have spec/spec.opts?
> >
> >Scott
>
>
> On Aug 8, 2007, at 5:25 PM, David Parker wrote:
>
> > Hello all,
> > I'm new to rSpec but after reading a couple of tutorials I've
> > become enamored.  Anyway, I am at minute 42 of the rSpec basics
> > screencast ( peepcode.com) and I'm having the following error
> > running autotest w/rSpec:
> > D:\ruby\projects\forecaster
> > >autotest
> > loading autotest/rails_rspec
> > c:\ruby\bin\ruby -rrubygems -e "require 'redgreen'"  -S script/spec
> > -O spec/spec.opts  spec/models/weather_spec.rb spec/views/weathers/
> > show.rhtml_spec.rb spec/controllers/weathers
> _controller_spec.rb
> > spec/views/weathers/new.rhtml_spec.rb spec/views/weathers/
> > edit.rhtml_spec.rb spec/helpers/weathers_helper_spec.rb spec/views/
> > weathers/index.rhtml_spec.rb
> > invalid option: -O
> > Test::Unit automatic runner.
> >
> > I also have the TDD screencast and I am able to run autotest with
> > no problems:
> > D:\ruby\projects\journal_app>autotest
> > loading autotest/rails
> > c:\ruby\bin\ruby -rrubygems -e "require 'redgreen'"  -I.;lib;test -
> > rtest/unit -e "%w[test/functional/journals_controller_test.rb test/
> > integration/journal_stories_test.rb test/unit/journal_test.rb].each
> > { |f| require f }" | unit_diff -u
> > Loaded suite -e
> > Started
> > 
> > Finished in 1.265 seconds.
> > 16 tests, 33 assertions, 0 failures, 0 errors
> >
> > Note: I am running Rails 1.2.3 and ZenTest v 3.6.1 on a Windows
> > machine (sad, I know, but we've discussed that already).
> >
> > When I run 'ruby script/spec -v' it says:
> > RSpec-1.0.5 (r2081) - BDD for Ruby
> >
> > I've also tried installing the newest version of the rSpec plugins
> > and running "ruby script/generate rspec" so the proper files are
> > copied to the script folder.
> >
> > as a "hack" fix, I did this:
> > 1) I removed my .autotest file completely (so no fun red/green/etc)
> > 2) I modified plugins>rspec >lib>autotest> rspec.rb and removed "#
> > {add_options_if_present}" from line 50
> >
> > Anyone know of what my problem may be?  Windows perhaps?  It would
> > sure be nice to be able to keep my .autotest file...
> > Thanks for any help you can provide!
>
>
> -- 
>
> dp
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users