[rspec-users] Rake generate - not generating spec files
David Chelimsky
dchelimsky at gmail.com
Tue Feb 22 21:38:49 EST 2011
On Feb 22, 2011, at 8:35 PM, Jason Nah wrote:
> Howdy,
>
> I'm running the following stack:
> rails 3.0.4
> rake (0.8.7)
> rspec 2.5.0
> rspec-rails 2.5.0
> I created the rails app, and I didn't tell rails to exclude the default Test mechanisms.
>
> I installed it using
>
> rails generate rspec:install
>
> When I type
> rake g model User
>
> I get this:
> invoke active_record
> create db/migrate/20110223022101_create_users.rb
> create app/models/user.rb
> invoke test_unit
> create test/unit/user_test.rb
> create test/fixtures/users.yml
>
> No specs.
>
> When I type
> rake -T
>
> I don't see any spec targets.
>
> When I run rake spec, nothing happens.
>
>
> Is there something I've missed?
Is rspec-rails in your Gemfile?
group :test, :development do
gem "rspec-rails", "~> 2.5"
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110222/4294fce5/attachment.html>
More information about the rspec-users
mailing list