Displaying 2 results from an estimated 2 matches for "dzhan".
Did you mean:
dchan
2011 Jun 29
6
RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
In my user_sessions_controller:
class UserSessionsController < ApplicationController
before_filter :require_no_user, :only => [:create, :new]
before_filter :require_user, :only => :destroy
def new
@user_session = UserSession.new
@message = "Hello."
end
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
2011 Jun 30
2
Testing RSpec views: the index action; is my methodology flawed?
This is my organizations_controller_spec.rb:
require ''spec_helper''
describe Superadmin::OrganizationsController do
describe "GET index" do
it "shows a list of all organizations" do
#pending "don''t know why this doesn''t work"
Organization.should_receive(:all)
end
end
end
============
This is my