Displaying 12 results from an estimated 12 matches for "dancingtext".
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
2007 Oct 18
6
spec:models depends on development db:migration
For those interested ....
rake spec:models seems to clone the test database from development. If
your dev db is empty, the models task fails mysteriously.
Anyway, to make sure your dev db is at the current migration version, I
added this dependency in lib/tasks
task ''spec:models'' => ''db:migrate''
Now the dev db is migrated up with each test pass.
Keith
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
2006 Nov 24
0
rSpec REL_0_7_2 rspec_on_rails (MissingSourceFile) >> Fixed in trunk
...spec-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 specs)
$ rake spec:models
<Specs running nicely>
Thanks, Keith On 11/22/06, Keith McDonnell <keith at dancingtext.com> wrote:
> > 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
&g...
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 Oct 18
0
rake spec:models failing
Hi there,
I''m having trouble with `rake spec:models`. It''s failing on:
- 1 old rspec/rails project
- all new rspec/rails projects
But, it *is* working fine on my other (older) rspec/rails projects. All
projects are on rspec & rails 1.0.8, Rails 1.2.3, os X ppc
Here''s a fresh rspec/rails project with failing rake task
$ rails test_app -d postgresql
$ cd
2007 Feb 23
0
rspec on rails 0 7 5 1 >> IGNORE last
Hi all,
Please ignore my last mail (see below).
I forgot to run ./script/generate rspec after upgrading. I thought that
generate was for new spec installation not an upgrade. D''oh!
Keith
----------------------
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
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 24
0
Using spec fixtures with integration tests
Hi all,
How can I use spec fixtures with rails integration tests ?
I''ve tried adding {{ fixtures "../../spec/fixtures/myfixture" }}
to the integration test but the fixtures are not loaded when I run the
rake task.
Rails doesn''t load symlinked fixtures either so I copied the files from
spec/fixtures for the time being. Not very DRY.
Any ideas ?
Keith