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
|
%body
|
||||||
#container
|
#container
|
||||||
- if user_signed_in?
|
/ - if user_signed_in?
|
||||||
= link_to "log out", destroy_user_session_path
|
/ = link_to "log out", destroy_user_session_path
|
||||||
- else
|
/ - else
|
||||||
= link_to "login", new_user_session_path
|
/ = link_to "login", new_user_session_path
|
||||||
|
|
||||||
- flash.each do |name, msg|
|
- flash.each do |name, msg|
|
||||||
= content_tag :div, msg, :id => "flash_#{name}"
|
= 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
|
# 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
|
# 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!
|
# 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.
|
# Log error messages when you accidentally call methods on nil.
|
||||||
config.whiny_nils = true
|
config.whiny_nils = true
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
Diaspora::Application.routes.draw do |map|
|
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,
|
#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
|
#non mutable stuff in anohter file
|
||||||
devise_for :users, :path_names => {:sign_up => "signup", :sign_in => "login", :sign_out => "logout"}
|
devise_for :users, :path_names => {:sign_up => "signup", :sign_in => "login", :sign_out => "logout"}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
require File.dirname(__FILE__) + '/../spec_helper'
|
require File.dirname(__FILE__) + '/../spec_helper'
|
||||||
|
|
||||||
describe UsersController do
|
describe UsersController do
|
||||||
render_views
|
#render_views
|
||||||
|
|
||||||
#fixtures here?
|
#fixtures here?
|
||||||
|
|
||||||
it 'should, after logging in redirect to the dashboard page' do
|
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
|
||||||
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'
|
require 'spec_helper'
|
||||||
|
|
||||||
|
#this is implementation is done by devise
|
||||||
describe User do
|
describe User do
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue