got rspec fully working

This commit is contained in:
maxwell 2010-06-12 14:44:58 -07:00
parent a663844eef
commit e1a0c2f365
4 changed files with 12 additions and 4 deletions

View file

@ -27,7 +27,7 @@ gem "bson_ext", "1.0.1"
# Bundle gems for certain environments: # Bundle gems for certain environments:
# #
group :test do #group :test do
gem 'rspec-rails', ">= 2.0.0.beta.8" gem 'rspec-rails', ">= 2.0.0.beta.8"
# gem 'webrat' # gem 'webrat'
end #end

View file

@ -35,7 +35,7 @@ module Diaspora
# Configure generators values. Many other options are available, be sure to check the documentation. # Configure generators values. Many other options are available, be sure to check the documentation.
config.generators do |g| config.generators do |g|
g.orm :mongoid g.orm :mongoid
# g.template_engine :erb g.template_engine :haml
g.test_framework :rspec g.test_framework :rspec
end end

View file

@ -19,7 +19,8 @@ Rspec.configure do |config|
config.mock_with :rspec config.mock_with :rspec
config.fixture_path = "#{::Rails.root}/spec/fixtures" config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your # If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, comment the following line or assign false # examples within a transaction, comment the following line or assign false
# instead of true. # instead of true.

7
spec/user_spec.rb Normal file
View file

@ -0,0 +1,7 @@
require 'spec_helper'
describe 'user login' do
it 'should be able for a user to create a new user' do
puts "foo"
end
end