my question unwields me as a complete noob - which is okay - but I
apologize for this totally basic question <:)
I’ve bought the PragProg Rspec Book and googled, been reading blogs and
what-have-I-not, but nowhere have I been able to find information
detailing how I setup a BDD environment for testing the construction of
a Gem.
I have a …/gem_folder which I hope eventually will be a Gem to use with
Rails 3 and I really would like to upload it to GitHub with a good test
coverage.
From the Rspec Book I’ve learned that within Rails Apps, I use Cucumber
and WebRat (among others) - but the book does not (or at least Iøve not
been able to discover it) show how to setup the environment, without the
Rails App.
I guess my question could boil down to: how do I create the environment
(folders, files) to test a Gem meant to work with Rails?
I followed the Rspec Book, railscast’s on the subject and used echoe and
jeweller and had myself a genuine push’able Gem -
but as my question was: how for Pete’s sake am I going to be able to
test Rails Controllers and Rails Models?
(even tried reading the rspec-rails gem as suggested by matt wynne - and
implementing parts from that. I partly see where dchelimsky is going,
but it’s just to complex to me, alas)
anyways, I’m on my 4th day on this gem-quest - and about to fold and
walk away with the knowledge that testing is just a tad out of my league
<:/
But - thanks a bunch for trying to steer me afloat
/Walther
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.