On Dec 13, 2010, at 10:46 PM, Jonathan Linowes wrote:
> Is there a way for the html formatter to show nested "describe" blocks, as
> written in my examples.
Not supported yet. Patches welcome!
> Or perhaps I should change how I write my examples so nesting can be shown?
>
> eg
>
> describe My
David Chelimsky wrote in post #967835:
> ZenTest-4.4.2 will add "." to the $LOAD_PATH, at which point the
> material in
> the book will work as written (except that the file is
> "autotest/discover.rb", not
> "autotest/.autotest/discover.rb") with ruby-1.9.
Ok - I have updated to ZenTest-4.4.2, I'
On Tue, Dec 14, 2010 at 10:15 AM, Michelle Pace wrote:
>
> Ok - I have updated to ZenTest-4.4.2, I've made sure that I have
> autotest/discover.rb and that I use 'autotest' in place
> of 'autospec'...I'm sorry to say it, but iis still not 'verking:
>
> C:\DEVELOPMENT\twits>autotest
> loading autot
Luis Lavena wrote in post #968298:
> On Tue, Dec 14, 2010 at 10:15 AM, Michelle Pace
> wrote:
>> Could not find gem 'rspec (~> 2.1.0, runtime)' in any of the gem sources
>> listed in your Gemfile.
>
> The error is there, did you update your Gemfile definitions to the
> latest version and run bundl
The problem was related to the use of the factory-generated instance,
in this case a parent with one child instance similar to Hartl's user/
micropost example, but different in that I require at least one child
instance to be present (in the has_many relationship).
I'm doing this in conjunction wi
You can't say User.new(:id=>27) as ActiveRecord prevents :id from being
mass-assigned like that (in the case of an action that does
User.new(params[:user]) in the controller, people would be able to set the
id through the POST data). Try User.new.tap {|u| u.id = 27 } instead.
-- Elliot
On Fri, De
On Tue, Dec 14, 2010 at 1:38 PM, Michelle Pace wrote:
>
> Thanks Luis, I'm completely new with this... mmm - no?
Are you following a Rails guide? didn't the guide mention something
about a Gemfile?
> All I ran was "%gem update" and thought that would do it as it now
> returns with "Nothing to up
Hey all,
I'm new to Rspec and I was just wondering what the standard way of
testing nested resources is?
I currently have a Job model which has many Correspondences.
The new action of my CorrespondencesController looks like:
def new
@job = Job.find params[:job_id]
@correspondence = @j
Luis Lavena wrote in post #968399:
> You're using Bundler, bundler needs a "manifest" of gems and versions
> that your application use. Look for "Gemfile" in the root of your
> application.
*yay*! Thanks Luis (and David) for all your patience. I've finally got
it working and can now go onto Page