blerg rspec cache sux
This commit is contained in:
parent
865d7d18cb
commit
28ba205ef3
6 changed files with 15 additions and 35 deletions
|
|
@ -12,10 +12,10 @@
|
|||
|
||||
%body
|
||||
#container
|
||||
- if user_signed_in?
|
||||
= link_to "log out", destroy_user_session_path
|
||||
- else
|
||||
= link_to "login", new_user_session_path
|
||||
/ - if user_signed_in?
|
||||
/ = link_to "log out", destroy_user_session_path
|
||||
/ - else
|
||||
/ = link_to "login", new_user_session_path
|
||||
|
||||
- flash.each do |name, msg|
|
||||
= content_tag :div, msg, :id => "flash_#{name}"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Diaspora::Application.configure do
|
|||
# test suite. You never need to work with it otherwise. Remember that
|
||||
# your test database is "scratch space" for the test suite and is wiped
|
||||
# and recreated between test runs. Don't rely on the data there!
|
||||
config.cache_classes = true
|
||||
config.cache_classes = false
|
||||
|
||||
# Log error messages when you accidentally call methods on nil.
|
||||
config.whiny_nils = true
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
Diaspora::Application.routes.draw do |map|
|
||||
resources :status_messages
|
||||
|
||||
#routes for devise, not really sure you will need to mess with this in the future, lets put default,
|
||||
#non mutable stuff in anohter file
|
||||
devise_for :users, :path_names => {:sign_up => "signup", :sign_in => "login", :sign_out => "logout"}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,14 @@
|
|||
require File.dirname(__FILE__) + '/../spec_helper'
|
||||
|
||||
describe UsersController do
|
||||
render_views
|
||||
|
||||
#render_views
|
||||
#fixtures here?
|
||||
|
||||
it 'should, after logging in redirect to the dashboard page' do
|
||||
puts "where is rafi"
|
||||
pending
|
||||
#go to /login
|
||||
#fill in the form
|
||||
#stub create action
|
||||
#should get a redirect
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
require File.dirname(__FILE__) + '/../spec_helper'
|
||||
|
||||
describe 'making sure the spec runner works' do
|
||||
|
||||
it 'should not delete the database mid-spec' do
|
||||
User.count.should == 0
|
||||
billy = User.create(:email => "billy@aol.com", :password => "foobar")
|
||||
User.count.should == 1
|
||||
end
|
||||
|
||||
it 'should make sure the last user no longer exsists' do
|
||||
User.count.should == 0
|
||||
end
|
||||
|
||||
describe 'testing a before do block' do
|
||||
before do
|
||||
@bill = User.create(:email => "billy@aol.com", :password => "foobar")
|
||||
|
||||
end
|
||||
|
||||
it 'should have cleaned before the before do block runs' do
|
||||
User.count.should == 1
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
#this is implementation is done by devise
|
||||
describe User do
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue