got rspec fully working
This commit is contained in:
parent
a663844eef
commit
e1a0c2f365
4 changed files with 12 additions and 4 deletions
4
Gemfile
4
Gemfile
|
|
@ -27,7 +27,7 @@ gem "bson_ext", "1.0.1"
|
|||
|
||||
# Bundle gems for certain environments:
|
||||
#
|
||||
group :test do
|
||||
#group :test do
|
||||
gem 'rspec-rails', ">= 2.0.0.beta.8"
|
||||
# gem 'webrat'
|
||||
end
|
||||
#end
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ module Diaspora
|
|||
# Configure generators values. Many other options are available, be sure to check the documentation.
|
||||
config.generators do |g|
|
||||
g.orm :mongoid
|
||||
# g.template_engine :erb
|
||||
g.template_engine :haml
|
||||
g.test_framework :rspec
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ Rspec.configure do |config|
|
|||
|
||||
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
||||
|
||||
|
||||
# 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
|
||||
# instead of true.
|
||||
|
|
|
|||
7
spec/user_spec.rb
Normal file
7
spec/user_spec.rb
Normal 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
|
||||
Loading…
Reference in a new issue