Got it. File name should be user_spec.rb and not user_test.rb .
On May 22, 8:42 pm, Nadal wrote:
> This is what I did. Please tell me where did I go wrong.
>
> # I am using rails 2.3.5
> rails demo
> cd demo
> ruby script/generate scaffold User name:string
> rake db:migrate
> rake db:test:prepare
This is what I did. Please tell me where did I go wrong.
# I am using rails 2.3.5
rails demo
cd demo
ruby script/generate scaffold User name:string
rake db:migrate
rake db:test:prepare
ruby script/plugin install git://github.com/dchelimsky/rspec.git -r
'refs/tags/1.2.9'
ruby script/plugin instal
I am talking about rspec itself and running tests written for rspec.
This is what I did.
> git clone http://github.com/dchelimsky/rspec.git
> cd rspec
> rake test
I am getting following error
rake aborted!
No such file or directory - /Users/nadal/.rubyforge/user-config.yml
/usr/local/lib/ruby/g
I don't think RSpec has a built-in way to customize that. I think you'll
just have to override the matcher you're using. Clone the git repo (or, `gem
install open_gem` and then `gem open rspec`) and take a look at the
spec/matchers/* directory for more (note that `.should ==`, `.should_not ==`
is O
Hi,
I am just curious-- is there any way to customize the output of the "expect",
"got" that is returned?
I often find myself comparing big blocks of text that are virtually identical
except one minor detail (like a missing letter somewhere), and it's quite hard
to tell what is different between